blob: 395806b1299aaae1a3b4e81ca13b98ebd49154e5 [file] [log] [blame]
Duncan P. N. Exon Smitha3bdc322015-03-20 19:26:58 +00001; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
2
3define void @foo() {
Duncan P. N. Exon Smithfc25da12015-03-24 17:32:19 +00004entry:
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +00005 br label %exit, !dbg !DILocation(scope: !DISubprogram(), inlinedAt: !{})
Duncan P. N. Exon Smithfc25da12015-03-24 17:32:19 +00006; CHECK: inlined-at should be a location
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +00007; CHECK-NEXT: !{{[0-9]+}} = !DILocation(line: 0, scope: !{{[0-9]+}}, inlinedAt: ![[IA:[0-9]+]])
Duncan P. N. Exon Smithfc25da12015-03-24 17:32:19 +00008; CHECK-NEXT: ![[IA]] = !{}
Duncan P. N. Exon Smitha3bdc322015-03-20 19:26:58 +00009
Duncan P. N. Exon Smithfc25da12015-03-24 17:32:19 +000010exit:
11 ret void, !dbg !{}
Duncan P. N. Exon Smitha3bdc322015-03-20 19:26:58 +000012; CHECK: invalid !dbg metadata attachment
13; CHECK-NEXT: ret void, !dbg ![[LOC:[0-9]+]]
14; CHECK-NEXT: ![[LOC]] = !{}
Duncan P. N. Exon Smithfc25da12015-03-24 17:32:19 +000015}
Duncan P. N. Exon Smitha3bdc322015-03-20 19:26:58 +000016
17!llvm.module.flags = !{!0}
18!0 = !{i32 2, !"Debug Info Version", i32 3}