diff options
Diffstat (limited to 'test/Assembler/invalid-metadata-function-local-attachments.ll')
-rw-r--r-- | test/Assembler/invalid-metadata-function-local-attachments.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/invalid-metadata-function-local-attachments.ll b/test/Assembler/invalid-metadata-function-local-attachments.ll new file mode 100644 index 0000000..20cb0a9 --- /dev/null +++ b/test/Assembler/invalid-metadata-function-local-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: invalid use of function-local name + ret void, !foo !{i32 %v} +} |