Clang Project

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