blob: 35ec76353738fef7c411452d206ffe154bf1c32a [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 Smithdad20b22014-12-09 18:38:53 +00005; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: invalid use of function-local name
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +00006 call void @llvm.bar(metadata !{i32 %v})
Duncan P. N. Exon Smitha77df652014-12-07 17:56:16 +00007 ret void
8}
9
10declare void @llvm.bar(metadata)