24 lines · cpp
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}2// Tests that dwoIds in modules match the dwoIDs in the main file.3 4// REQUIRES: asserts5 6// RUN: rm -rf %t.cache7// RUN: %clang_cc1 -triple %itanium_abi_triple -x objective-c++ -std=c++11 -debugger-tuning=lldb -debug-info-kind=limited -fmodules -fmodule-format=obj -dwarf-ext-refs -fimplicit-module-maps -fmodules-cache-path=%t.cache %s -I %S/Inputs -emit-llvm -o %t.ll -mllvm -debug-only=pchcontainer 2> %t.mod-out8// RUN: cat %t.ll %t.mod-out | FileCheck %s9// RUN: cat %t.ll | FileCheck --check-prefix=CHECK-REALIDS %s10// RUN: cat %t.mod-out | FileCheck --check-prefix=CHECK-REALIDS %s11 12@import DebugDwoId;13 14Dummy d;15 16// Find the emitted dwoID for DebugInfoId and compare it against the one in the PCM.17// CHECK: DebugDwoId-{{[A-Z0-9]+}}.pcm18// CHECK-SAME: dwoId: [[DWOID:[0-9]+]]19// CHECK: dwoId: [[DWOID]]20// CHECK-NEXT: !DIFile(filename: "DebugDwoId"21 22// Make sure the dwo IDs are real IDs and not fallback values (~1ULL).23// CHECK-REALIDS-NOT: dwoId: 1844674407370955161524