30 lines · plain
1! REQUIRES: x86-registered-target2 3! Testing to ensure that setting only -split-dwarf-file allows to place4! .dwo sections into regular output object.5! RUN: %flang_fc1 -debug-info-kind=standalone -triple x86_64-unknown-linux \6! RUN: -split-dwarf-file %t.o -emit-obj -o %t.o %s7! RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=DWO %s8 9! Testing to ensure that setting both -split-dwarf-file and -split-dwarf-output10! does not place .dwo sections into regular output object but in a separate11! file.12! RUN: %flang_fc1 -debug-info-kind=standalone -triple x86_64-unknown-linux \13! RUN: -split-dwarf-file %t.dwo -split-dwarf-output %t.dwo -emit-obj -o %t.o %s14! RUN: llvm-readobj -S %t.dwo | FileCheck --check-prefix=DWO %s15! RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=SPLIT %s16 17! Test that splitDebugFilename field of the DICompileUnit get correctly18! generated.19! RUN: %flang_fc1 -debug-info-kind=standalone -triple x86_64-unknown-linux \20! RUN: -split-dwarf-file %t.test_dwo -split-dwarf-output %t.test_dwo \21! RUN: -emit-llvm %s -o - | FileCheck --check-prefix=CU %s22 23! DWO: .dwo24! SPLIT-NOT: .dwo25! CU: !DICompileUnit26! CU-SAME: splitDebugFilename: "{{.*}}test_dwo"27 28program test29end program test30