1; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2
3!llvm.module.flags = !{!6}
4!llvm.dbg.cu = !{!5}
5
6!0 = !DISubprogram(name: "bar", linkageName: "_ZN3foo3barEv", line: 3, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagProtected | DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !4, scope: !1, type: !2)
7!1 = !DIFile(filename: "/foo", directory: "bar.cpp")
8!2 = !DISubroutineType(types: !3)
9!3 = !{null}
10!4 = !DIFile(filename: "/foo", directory: "bar.cpp")
11!5 = distinct !DICompileUnit(language: DW_LANG_C99, isOptimized: true, emissionKind: FullDebug, file: !4, enums: !{}, retainedTypes: !{})
12
13define <{i32, i32}> @f1() !dbg !0 {
14; CHECK: !dbgx ![[NUMBER:[0-9]+]]
15  %r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbgx !1
16; CHECK: !dbgx ![[NUMBER]]
17  %e = extractvalue <{ i32, i32 }> %r, 0, !dbgx !1
18  ret <{ i32, i32 }> %r
19}
20
21; CHECK: DIFlagProtected
22!6 = !{i32 1, !"Debug Info Version", i32 3}
23