diff options
Diffstat (limited to 'test/Assembler/invalid-metadata-function-local-complex-2.ll')
-rw-r--r-- | test/Assembler/invalid-metadata-function-local-complex-2.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Assembler/invalid-metadata-function-local-complex-2.ll b/test/Assembler/invalid-metadata-function-local-complex-2.ll new file mode 100644 index 0000000..72fa41a --- /dev/null +++ b/test/Assembler/invalid-metadata-function-local-complex-2.ll @@ -0,0 +1,10 @@ +; 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 + call void @llvm.bar(metadata !{i32 0, i32 %v}) + ret void +} + +declare void @llvm.bar(metadata) |