aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/invalid-metadata-attachment-has-type.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-metadata-attachment-has-type.ll')
-rw-r--r--test/Assembler/invalid-metadata-attachment-has-type.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Assembler/invalid-metadata-attachment-has-type.ll b/test/Assembler/invalid-metadata-attachment-has-type.ll
new file mode 100644
index 0000000..74e4151
--- /dev/null
+++ b/test/Assembler/invalid-metadata-attachment-has-type.ll
@@ -0,0 +1,8 @@
+; RUN: not llvm-as -disable-output < %s 2>&1 | FileCheck %s
+; Check common error from old format.
+
+define void @foo() {
+; CHECK: {{.*}}:[[@LINE+1]]:{{[0-9]+}}: error: invalid metadata-value-metadata roundtrip
+ ret void, !bar !{metadata !0}
+}
+!0 = !{}