24 lines · c
1// REQUIRES: asserts2 3// Modules:4// RUN: rm -rf %t5// RUN: mkdir %t6// RUN: cd %t7 8// RUN: %clang_cc1 -fmodule-format=obj -emit-pch \9// RUN: -triple %itanium_abi_triple \10// RUN: -fdebug-prefix-map=%t=BUILD \11// RUN: -fdebug-prefix-map=%S=SOURCE \12// RUN: -fdebug-compilation-dir=%t \13// RUN: -o %t/prefix.ll %S/debug-info-limited-struct.h \14// RUN: -mllvm -debug-only=pchcontainer &>%t-container.ll15// RUN: cat %t-container.ll | FileCheck %s16 17// CHECK: distinct !DICompileUnit(18// CHECK-SAME: language: DW_LANG_C{{[^,]*}},19// CHECK-SAME: file: ![[FILE:[0-9]+]],20// CHECK: ![[FILE]] = !DIFile(21// CHECK-SAME: filename: "SOURCE/debug-info-limited-struct.h",22// CHECK-SAME: directory: "BUILD"23 24