summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/functionlocal-metadata-attachments.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/functionlocal-metadata-attachments.ll')
-rw-r--r--llvm/test/Assembler/functionlocal-metadata-attachments.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Assembler/functionlocal-metadata-attachments.ll b/llvm/test/Assembler/functionlocal-metadata-attachments.ll
new file mode 100644
index 00000000000..71d8fa1b0e1
--- /dev/null
+++ b/llvm/test/Assembler/functionlocal-metadata-attachments.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+define void @foo(i32 %v) {
+entry:
+; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: unexpected function-local metadata
+ ret void, !foo !{i32 %v}
+}
OpenPOWER on IntegriCloud