aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/Inputs/PR11464.b.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/Inputs/PR11464.b.ll')
-rw-r--r--test/Linker/Inputs/PR11464.b.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Linker/Inputs/PR11464.b.ll b/test/Linker/Inputs/PR11464.b.ll
new file mode 100644
index 0000000..7ef5a36
--- /dev/null
+++ b/test/Linker/Inputs/PR11464.b.ll
@@ -0,0 +1,13 @@
+%bug_type = type { %bug_type* }
+%bar = type { i32 }
+
+define i32 @bug_a(%bug_type* %fp) nounwind uwtable {
+entry:
+ %d_stream = getelementptr inbounds %bug_type* %fp, i64 0, i32 0
+ ret i32 0
+}
+
+define i32 @bug_b(%bar* %a) nounwind uwtable {
+entry:
+ ret i32 0
+}