The majority of tests omit testing "clang" for -cc1 command lines. In addition,
some distributions symlink %clang to an executable with a content hash based
filename so clang{{.*}} check won't work.
With this change, we can remove many -no-canonical-prefixes whose purpose was to
make the tests pass on such distributions.
15 lines
487 B
C
15 lines
487 B
C
// RUN: %clang -E -x c-header %s > %t
|
|
// RUN: grep 'B B' %t
|
|
|
|
#define A B
|
|
A A
|
|
|
|
// The driver should pass preprocessor dump flags (-dD, -dM and -dI) to cc1 invocation
|
|
// RUN: %clang -### -E -dD %s 2>&1 | FileCheck --check-prefix=CHECK-dD %s
|
|
// RUN: %clang -### -E -dM %s 2>&1 | FileCheck --check-prefix=CHECK-dM %s
|
|
// RUN: %clang -### -E -dI %s 2>&1 | FileCheck --check-prefix=CHECK-dI %s
|
|
// CHECK-dD: "-cc1" {{.*}} "-dD"
|
|
// CHECK-dM: "-cc1" {{.*}} "-dM"
|
|
// CHECK-dI: "-cc1" {{.*}} "-dI"
|
|
|