aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/Inputs/module-flags-dont-change-others.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/Inputs/module-flags-dont-change-others.ll')
-rw-r--r--test/Linker/Inputs/module-flags-dont-change-others.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Linker/Inputs/module-flags-dont-change-others.ll b/test/Linker/Inputs/module-flags-dont-change-others.ll
new file mode 100644
index 0000000..61d57e5
--- /dev/null
+++ b/test/Linker/Inputs/module-flags-dont-change-others.ll
@@ -0,0 +1,8 @@
+!llvm.module.flags = !{!3, !4, !5}
+
+!0 = !{}
+!1 = !{!0}
+!2 = !{!0, !1}
+!3 = !{i32 4, !"foo", i32 37} ; Override the "foo" value.
+!4 = !{i32 5, !"bar", !1}
+!5 = !{i32 6, !"baz", !2}