Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / split-debug-filename.c
blob5a0562c8456b4079f80200ff26e36bdd4a1e2b5a
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -debug-info-kind=limited -split-dwarf-file foo.dwo -S -emit-llvm -o - %s | FileCheck %s
3 // RUN: %clang_cc1 -triple x86_64-unknown-linux -debug-info-kind=limited -split-dwarf-file %t.dwo -split-dwarf-output %t.dwo -emit-obj -o - %s | llvm-readobj -S - | FileCheck --check-prefix=O %s
4 // RUN: llvm-readobj -S %t.dwo | FileCheck --check-prefix=DWO %s
6 int main (void) {
7 return 0;
10 // Testing to ensure that the dwo name gets output into the compile unit.
11 // CHECK: !DICompileUnit({{.*}}, splitDebugFilename: "foo.dwo"
13 // O-NOT: .dwo
14 // DWO: .dwo