brintos

brintos / llvm-project-archived public Read only

0
0
Text · 605 B · 32c4658 Raw
21 lines · plain
1; RUN: llvm-as -disable-output <%s 2>&1 | FileCheck %s2 3define void @foo() {4entry:5  br label %exit, !dbg !DILocation(scope: !1, inlinedAt: !{})6; CHECK: inlined-at should be a location7; CHECK-NEXT: !{{[0-9]+}} = !DILocation(line: 0, scope: !{{[0-9]+}}, inlinedAt: ![[IA:[0-9]+]])8; CHECK-NEXT: ![[IA]] = !{}9 10exit:11  ret void, !dbg !{}12; CHECK: invalid !dbg metadata attachment13; CHECK-NEXT: ret void, !dbg ![[LOC:[0-9]+]]14; CHECK-NEXT: ![[LOC]] = !{}15}16 17; CHECK: warning: ignoring invalid debug info18!llvm.module.flags = !{!0}19!0 = !{i32 2, !"Debug Info Version", i32 3}20!1 = distinct !DISubprogram()21