blob: be1d16d2c178bf0ce6265393104db7044d8c031b [file] [log] [blame]
Duncan P. N. Exon Smitha77df652014-12-07 17:56:16 +00001; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
2
3define void @foo(i32 %v) {
4entry:
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +00005; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: invalid use of function-local name
Duncan P. N. Exon Smitha77df652014-12-07 17:56:16 +00006 call void @llvm.bar(metadata !{i32 %v, i32 0})
7 ret void
8}
9
10declare void @llvm.bar(metadata)