[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / llvm / test / Verifier / disubprogram-name-match-only.ll
blobae23ae201d55a59ec4b97486b41db6ba13709d73
1 ; RUN: llvm-as -disable-output <%s 2>&1| FileCheck %s
3 define void @f() !dbg !14 {
4   ret void, !dbg !5
7 !llvm.module.flags = !{!15}
8 !llvm.dbg.cu = !{!4}
10 !0 = !{null}
11 !1 = distinct !DICompositeType(tag: DW_TAG_structure_type)
12 !2 = !DIFile(filename: "f.c", directory: "/")
13 !3 = !DISubroutineType(types: !0)
14 !4 = distinct !DICompileUnit(language: DW_LANG_C, file: !2)
15 ; CHECK: !dbg attachment points at wrong subprogram for function
16 ; CHECK: warning: ignoring invalid debug info
17 !5 = !DILocation(line: 1, scope: !9)
18 !9 = distinct !DISubprogram(name: "f", scope: !1,
19                             file: !2, line: 1, type: !3, isLocal: true,
20                             isDefinition: true, scopeLine: 2,
21                             unit: !4)
22 !14 = distinct !DISubprogram(name: "f", scope: !1,
23                             file: !2, line: 1, type: !3, isLocal: true,
24                             isDefinition: true, scopeLine: 2,
25                             unit: !4)
26 !15 = !{i32 1, !"Debug Info Version", i32 3}