[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / debug-info-gline-tables-only2.c
blob204fd6ddf15b4df1149dc48307aa1d0b5b3faea1
1 // RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -emit-llvm -o - | FileCheck %s
2 // RUN: %clang_cc1 %s -debug-info-kind=line-directives-only -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.
6 int main(void) {
7 // CHECK: ret i32 0, !dbg
8 return 0;
11 // CHECK: !llvm.dbg.cu = !{!0}
12 // CHECK: !DICompileUnit(
13 // CHECK: !DISubprogram(
14 // CHECK: !DIFile(