gcc/testsuite/gcc.dg/cpp/_Pragma2.c
raw| 1 | /* Copyright (C) 2000 Free Software Foundation, Inc. */ |
| 2 | |
| 3 | /* { dg-do preprocess } */ |
| 4 | |
| 5 | /* Don't allow directives in a _Pragma string. */ |
| 6 | |
| 7 | /* Contributed by Neil Booth 14 Nov 2000. */ |
| 8 | |
| 9 | _Pragma("#define test") |
| 10 | |
| 11 | #ifdef test |
| 12 | #error Do not allow directives in _Pragma strings |
| 13 | #endif |