gcc/testsuite/gcc.dg/cpp/pr20348.c
raw| 1 | /* PR preprocessor/20348 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-I$srcdir/gcc.dg/cpp -I$srcdir/gcc.dg/cpp/inc" } */ |
| 4 | |
| 5 | #include <pr20348-aux.h> |
| 6 | #define MIDDLE |
| 7 | #include <pr20348.h> |
| 8 | |
| 9 | #ifndef PR20348_H_SEEN |
| 10 | # error pr20348.h not included after MIDDLE definition |
| 11 | #endif |
| 12 | #ifndef INC_PR20348_H_SEEN |
| 13 | # error inc/pr20348.h not included before MIDDLE definition |
| 14 | #endif |
| 15 | |
| 16 | int i; |