diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/c-c++-common/cpp/pr93452-1.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/cpp/pr93452-2.c | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/cpp/pr93452-1.c b/gcc/testsuite/c-c++-common/cpp/pr93452-1.c new file mode 100644 index 0000000..f0986e4 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/pr93452-1.c @@ -0,0 +1,10 @@ +/* { dg-do preprocess } */ +/* { dg-additional-options "-fdirectives-only" } */ + +int main () +{ + return 0; +} + +/* A regexp that doesn't match itself! */ +/* { dg-final { scan-file-not pr93452-1.i {_[_]has_include} } } */ diff --git a/gcc/testsuite/c-c++-common/cpp/pr93452-2.c b/gcc/testsuite/c-c++-common/cpp/pr93452-2.c new file mode 100644 index 0000000..c9ab0e9 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/pr93452-2.c @@ -0,0 +1,11 @@ +/* { dg-do preprocess } */ +/* { dg-additional-options "-dD" } */ + +#if __has_include ("who cares" ) +#endif +int main () +{ + return 0; +} + +/* { dg-final { scan-file-not pr93452-2.i {__has_include} } } */ |