brintos

brintos / llvm-project-archived public Read only

0
0
Text · 957 B · 0245ff1 Raw
27 lines · plain
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}2// REQUIRES: asserts3 4// Modules:5// RUN: rm -rf %t6// RUN: %clang_cc1 -x objective-c -fmodules -fmodule-format=obj \7// RUN:   -fdebug-prefix-map=%S/Inputs=/OVERRIDE \8// RUN:   -fimplicit-module-maps -DMODULES -fmodules-cache-path=%t %s \9// RUN:   -I %S/Inputs -I %t -emit-llvm -o %t.ll \10// RUN:   -mllvm -debug-only=pchcontainer &>%t-mod.ll11// RUN: cat %t-mod.ll | FileCheck %s12 13// PCH:14// RUN: %clang_cc1 -x objective-c -emit-pch -fmodule-format=obj -I %S/Inputs \15// RUN:   -fdebug-prefix-map=%S/Inputs=/OVERRIDE \16// RUN:   -o %t.pch %S/Inputs/DebugObjC.h \17// RUN:   -mllvm -debug-only=pchcontainer &>%t-pch.ll18// RUN: cat %t-pch.ll | FileCheck %s19 20#ifdef MODULES21@import DebugObjC;22#endif23 24// Dir should always be empty, but on Windows we can't recognize /var25// as being an absolute path.26// CHECK: !DIFile(filename: "/OVERRIDE{{/|\\\\?}}DebugObjC.h", directory: "{{()|(.*:.*)}}")27