aboutsummaryrefslogtreecommitdiff
path: root/test/Linker/module-flags-4-a.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/module-flags-4-a.ll')
-rw-r--r--test/Linker/module-flags-4-a.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Linker/module-flags-4-a.ll b/test/Linker/module-flags-4-a.ll
new file mode 100644
index 000000000000..f411a569d830
--- /dev/null
+++ b/test/Linker/module-flags-4-a.ll
@@ -0,0 +1,10 @@
+; RUN: not llvm-link %s %p/module-flags-4-b.ll -S -o - |& FileCheck %s
+
+; Test 'require' error.
+
+; CHECK: linking module flags 'bar': does not have the required value
+
+!0 = metadata !{ i32 1, metadata !"foo", i32 37 }
+!1 = metadata !{ i32 1, metadata !"bar", i32 927 }
+
+!llvm.module.flags = !{ !0, !1 }