Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / debug-info-gline-tables-only2.c
blobd5d62351a9b6677ff952abd4ec1756d5df686b1a
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.
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(