• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -S -emit-llvm -o - | FileCheck %s
2 // Checks that clang with "-gline-tables-only" emits metadata for
3 // compile unit, subprogram and file.
4 
main()5 int main() {
6   // CHECK: ret i32 0, !dbg
7   return 0;
8 }
9 
10 // CHECK: !llvm.dbg.cu = !{!0}
11 // CHECK: !DICompileUnit(
12 // CHECK: !DISubprogram(
13 // CHECK: !DIFile(
14