aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/invalid-mdglobalvariable-missing-name.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-mdglobalvariable-missing-name.ll')
-rw-r--r--test/Assembler/invalid-mdglobalvariable-missing-name.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Assembler/invalid-mdglobalvariable-missing-name.ll b/test/Assembler/invalid-mdglobalvariable-missing-name.ll
new file mode 100644
index 0000000..bc0f724
--- /dev/null
+++ b/test/Assembler/invalid-mdglobalvariable-missing-name.ll
@@ -0,0 +1,4 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+; CHECK: <stdin>:[[@LINE+1]]:42: error: missing required field 'name'
+!0 = !MDGlobalVariable(linkageName: "foo")