[LoopVectorizer] Add support for chaining partial reductions (#120272)
[llvm-project.git] / clang / test / Driver / config-zos.c
blob8de02ec101b914b1fdadf51ddd12b6e37a07b813
1 // REQUIRES: shell
2 // REQUIRES: systemz-registered-target
4 // RUN: unset CLANG_NO_DEFAULT_CONFIG
5 // RUN: rm -rf %t && mkdir %t
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
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"