1 // REQUIRES: shell 2 // REQUIRES: systemz-registered-target 3 4 // RUN: unset CLANG_NO_DEFAULT_CONFIG 5 // RUN: rm -rf %t && mkdir %t 6 7 // RUN: mkdir -p %t/testbin 8 // RUN: mkdir -p %t/etc 9 // RUN: ln -s %clang %t/testbin/clang 10 // RUN: echo "-DXYZ=789" >%t/etc/clang.cfg 11 // RUN: %t/testbin/clang --target=s390x-ibm-zos -c -### -no-canonical-prefixes %s 2>&1 | FileCheck -DDIR=%t %s 12 // RUN: %t/testbin/clang --target=s390x-ibm-zos -c -### -no-canonical-prefixes --no-default-config %s 2>&1 | FileCheck -check-prefix=NOCONFIG %s 13 // 14 // CHECK: Configuration file: [[DIR]]/etc/clang.cfg 15 // CHECK: "-D" "XYZ=789" 16 // NOCONFIG-NOT: Configuration file: {{.*}}/etc/clang.cfg 17 // NOCONFIG-NOT: "-D" "XYZ=789" 18