Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / split-debug-output.c
blob94cc141c8c19b7eee8b915f8e0a11fe860e332af
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-unknown-linux -debug-info-kind=limited -dwarf-version=4 -split-dwarf-file foo.dwo -split-dwarf-output %t -emit-obj -o - %s | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=DWARFv4 %s
3 // RUN: llvm-dwarfdump -debug-info %t | FileCheck --check-prefix=DWARFv4 %s
5 // RUN: %clang_cc1 -triple x86_64-unknown-linux -debug-info-kind=limited -dwarf-version=5 -split-dwarf-file foo.dwo -split-dwarf-output %t -emit-obj -o - %s | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=DWARFv5 %s
6 // RUN: llvm-dwarfdump -debug-info %t | FileCheck --check-prefix=DWARFv5 %s
8 int f(void) { return 0; }
10 // DWARFv4: DW_AT_GNU_dwo_name ("foo.dwo")
11 // DWARFv5: DW_AT_dwo_name ("foo.dwo")