| 1 |
// Needs symlinks |
| 2 |
// UNSUPPORTED: system-windows |
| 3 |
// REQUIRES: systemz-registered-target |
| 4 |
|
| 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: env -u CLANG_NO_DEFAULT_CONFIG %t/testbin/clang --target=s390x-ibm-zos -c -### -no-canonical-prefixes %s 2>&1 | FileCheck -DDIR=%t %s |
| 12 |
// RUN: env -u CLANG_NO_DEFAULT_CONFIG %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" |