2015-03-20 20:26:58 +01:00
|
|
|
; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
define void @foo() {
|
2015-03-24 18:32:19 +01:00
|
|
|
entry:
|
2015-08-28 22:26:49 +02:00
|
|
|
br label %exit, !dbg !DILocation(scope: !1, inlinedAt: !{})
|
2015-03-24 18:32:19 +01:00
|
|
|
; CHECK: inlined-at should be a location
|
2015-04-29 18:38:44 +02:00
|
|
|
; CHECK-NEXT: !{{[0-9]+}} = !DILocation(line: 0, scope: !{{[0-9]+}}, inlinedAt: ![[IA:[0-9]+]])
|
2015-03-24 18:32:19 +01:00
|
|
|
; CHECK-NEXT: ![[IA]] = !{}
|
2015-03-20 20:26:58 +01:00
|
|
|
|
2015-03-24 18:32:19 +01:00
|
|
|
exit:
|
|
|
|
ret void, !dbg !{}
|
2015-03-20 20:26:58 +01:00
|
|
|
; CHECK: invalid !dbg metadata attachment
|
|
|
|
; CHECK-NEXT: ret void, !dbg ![[LOC:[0-9]+]]
|
|
|
|
; CHECK-NEXT: ![[LOC]] = !{}
|
2015-03-24 18:32:19 +01:00
|
|
|
}
|
2015-03-20 20:26:58 +01:00
|
|
|
|
|
|
|
!llvm.module.flags = !{!0}
|
|
|
|
!0 = !{i32 2, !"Debug Info Version", i32 3}
|
2015-08-28 22:26:49 +02:00
|
|
|
!1 = distinct !DISubprogram()
|