22 lines · c
1// UNSUPPORTED: system-windows2// REQUIRES: systemz-registered-target3 4// RUN: export CLANG_CONFIG_PATH=%S/Inputs/config-zos5// RUN: env -u CLANG_NO_DEFAULT_CONFIG %clang --target=s390x-ibm-zos -c -### %s 2>&1 | FileCheck %s 6// CHECK: Configuration file: {{.*}}/Inputs/config-zos/clang.cfg7// CHECK: "-D" "ABC=123"8 9// RUN: export CLANG_CONFIG_PATH=%S/Inputs/config-zos/def.cfg10// RUN: env -u CLANG_NO_DEFAULT_CONFIG %clang --target=s390x-ibm-zos -c -### %s 2>&1 | FileCheck %s -check-prefix=CHECK-DEF11// CHECK-DEF: Configuration file: {{.*}}/Inputs/config-zos/def.cfg12// CHECK-DEF: "-D" "DEF=456"13 14// RUN: export CLANG_CONFIG_PATH=%S/Inputs/config-zos/Garbage15// RUN: env -u CLANG_NO_DEFAULT_CONFIG not %clang --target=s390x-ibm-zos -c -### %s 2>&1 | FileCheck %s -check-prefix=CHECK-ERR16// CHECK-ERR: error: configuration file '{{.*}}/Inputs/config-zos/Garbage' cannot be found17 18// The directory exists but no clang.cfg in it19// RUN: export CLANG_CONFIG_PATH=%S/Inputs/config-zos/tst20// RUN: env -u CLANG_NO_DEFAULT_CONFIG not %clang --target=s390x-ibm-zos -c -### %s 2>&1 | FileCheck %s -check-prefix=CHECK-ERRDIR21// CHECK-ERRDIR: error: configuration file '{{.*}}/Inputs/config-zos/tst/clang.cfg' cannot be found22