| 1 |
// REQUIRES: x86-registered-target |
| 2 |
// RUN: %clang_cc1 -debug-info-kind=limited -split-dwarf-file foo.dwo -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 |
| 5 |
|
| 6 |
int main (void) { |
| 7 |
return 0; |
| 8 |
} |
| 9 |
|
| 10 |
// Testing to ensure that the dwo name gets output into the compile unit. |
| 11 |
// CHECK: !DICompileUnit({{.*}}, splitDebugFilename: "foo.dwo" |
| 12 |
|
| 13 |
// O-NOT: .dwo |
| 14 |
// DWO: .dwo |