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