blob: 14d705647b74af2c1b1d1d45a1972cbeb5a62104 [file] [log] [blame]
Adrian Prantl609bf362018-09-08 00:21:55 +00001; RUN: llvm-as -disable-output <%s 2>&1| FileCheck %s
2
Adrian Prantl0779dff2019-09-18 22:38:56 +00003; CHECK: DIBlockByRefStruct on DICompositeType is no longer supported
Adrian Prantl609bf362018-09-08 00:21:55 +00004; CHECK: warning: ignoring invalid debug info
5
6define void @foo() {
7entry:
8 %s = alloca i32
9 call void @llvm.dbg.declare(metadata i32* %s, metadata !2, metadata !DIExpression()), !dbg !DILocation(scope: !1)
10 ret void
11}
12
13declare void @llvm.dbg.declare(metadata, metadata, metadata)
14
15!llvm.module.flags = !{!0}
16!0 = !{i32 2, !"Debug Info Version", i32 3}
17!1 = distinct !DISubprogram()
18!2 = !DILocalVariable(scope: !1, type: !3)
Adrian Prantl0779dff2019-09-18 22:38:56 +000019!3 = !DICompositeType(tag: DW_TAG_structure_type, flags: DIFlagReservedBit4)