aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/Inputs/opaque.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/Inputs/opaque.ll')
-rw-r--r--test/Linker/Inputs/opaque.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Linker/Inputs/opaque.ll b/test/Linker/Inputs/opaque.ll
new file mode 100644
index 0000000..2b0d7d3
--- /dev/null
+++ b/test/Linker/Inputs/opaque.ll
@@ -0,0 +1,13 @@
+%A = type { }
+%B = type { %D, %E, %B* }
+
+%D = type { %E }
+%E = type opaque
+
+@g2 = external global %A
+@g3 = external global %B
+
+define void @f1() {
+ getelementptr %A* null, i32 0
+ ret void
+}