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