brintos

brintos / llvm-project-archived public Read only

0
0
Text · 743 B · 055c4c9 Raw
18 lines · c
1// Needs symlinks2// UNSUPPORTED: system-windows3// REQUIRES: systemz-registered-target4 5// RUN: rm -rf %t && mkdir %t6 7// RUN: mkdir -p %t/testbin8// RUN: mkdir -p %t/etc9// RUN: ln -s %clang %t/testbin/clang10// RUN: echo "-DXYZ=789" >%t/etc/clang.cfg11// 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.cfg15// CHECK: "-D" "XYZ=789"16// NOCONFIG-NOT: Configuration file: {{.*}}/etc/clang.cfg17// NOCONFIG-NOT: "-D" "XYZ=789"18