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