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