llvm-project/llvm/test/Assembler/invalid-metadata-function-l...

11 lines
274 B
LLVM

; 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)