diff options
Diffstat (limited to 'clang/test/Driver/stdc-predef.i')
-rw-r--r-- | clang/test/Driver/stdc-predef.i | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Driver/stdc-predef.i b/clang/test/Driver/stdc-predef.i new file mode 100644 index 00000000000..63ed3d275b7 --- /dev/null +++ b/clang/test/Driver/stdc-predef.i @@ -0,0 +1,16 @@ +// The automatic preinclude of stdc-predef.h should not occur if +// the source filename indicates a preprocessed file. +// +// RUN: %clang %s -### -c 2>&1 \ +// RUN: --sysroot=%S/Inputs/stdc-predef \ +// RUN: | FileCheck --implicit-check-not "stdc-predef.h" %s + +int i; +// The automatic preinclude of stdc-predef.h should not occur if +// the source filename indicates a preprocessed file. +// +// RUN: %clang %s -### -c 2>&1 \ +// RUN: --sysroot=%S/Inputs/stdc-predef \ +// RUN: | FileCheck --implicit-check-not "stdc-predef.h" %s + +int i; |