xref: /llvm-project/llvm/test/Verifier/RemoveDI/blockbyref.ll (revision 464d9d96b3565ead06396ffb8d02b4dcf9cb9556)
1; RUN: llvm-as -disable-output <%s 2>&1| FileCheck %s
2
3; CHECK: DIBlockByRefStruct on DICompositeType is no longer supported
4; CHECK: warning: ignoring invalid debug info
5
6define void @foo() {
7entry:
8  %s = alloca i32
9    #dbg_declare(ptr %s, !2, !DIExpression(), !DILocation(scope: !1))
10  ret void
11}
12
13
14!llvm.module.flags = !{!0}
15!0 = !{i32 2, !"Debug Info Version", i32 3}
16!1 = distinct !DISubprogram()
17!2 = !DILocalVariable(scope: !1, type: !3)
18!3 = !DICompositeType(tag: DW_TAG_structure_type, flags: DIFlagReservedBit4)
19