"Fossies" - the Fresh Open Source Software Archive

Member "cfe-9.0.0.src/test/CodeGen/split-debug-filename.c" (26 Jun 2019, 602 Bytes) of package /linux/misc/cfe-9.0.0.src.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "split-debug-filename.c": 8.0.1_vs_9.0.0.

    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
    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