blob: fb807ed6daaf08c18970f7eea8722c5bdb86651b [file] [log] [blame]
Peter Collingbourned4bff302015-11-05 22:03:56 +00001; RUN: llvm-dis < %s.bc | FileCheck %s
2; RUN: verify-uselistorder < %s.bc
3
4; CHECK: define void @foo() !dbg [[SP:![0-9]+]]
5define void @foo() {
6 ret void
7}
8
9!llvm.module.flags = !{!0}
10!0 = !{i32 2, !"Debug Info Version", i32 3}
11
12!llvm.dbg.cu = !{!1}
Adrian Prantl75819ae2016-04-15 15:57:41 +000013!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, emissionKind: FullDebug)
Peter Collingbourned4bff302015-11-05 22:03:56 +000014!2 = !DIFile(filename: "foo.c", directory: "/path/to/dir")
15; CHECK: [[SP]] = distinct !DISubprogram
16!3 = distinct !DISubprogram(file: !2, scope: !2, line: 51, name: "foo", function: void ()* @foo, type: !4)
17!4 = !DISubroutineType(types: !{})