aboutsummaryrefslogtreecommitdiff
path: root/test/Linker/Inputs/only-needed-compiler-used.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/Inputs/only-needed-compiler-used.ll')
-rw-r--r--test/Linker/Inputs/only-needed-compiler-used.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Linker/Inputs/only-needed-compiler-used.ll b/test/Linker/Inputs/only-needed-compiler-used.ll
new file mode 100644
index 000000000000..6e837aa10215
--- /dev/null
+++ b/test/Linker/Inputs/only-needed-compiler-used.ll
@@ -0,0 +1,7 @@
+@used1 = global i8 4
+@used2 = global i32 123
+
+@llvm.compiler.used = appending global [2 x i8*] [
+ i8* @used1,
+ i8* bitcast (i32* @used2 to i8*)
+], section "llvm.metadata"