gcc/testsuite/gcc.dg/cpp/mi2c.h
raw| 1 | /* Test for overly eager multiple include optimization. |
| 2 | Problem distilled from glibc 2.0.7's time.h, sys/time.h, timebits.h. |
| 3 | Problem noted by Tom Tromey <[email protected]>. */ |
| 4 | #ifdef need_x |
| 5 | #undef need_x |
| 6 | #ifndef have_x |
| 7 | #define have_x |
| 8 | extern int x; |
| 9 | #endif |
| 10 | #endif |
| 11 | |
| 12 | #ifndef t_h |
| 13 | #define t_h |
| 14 | extern int y; |
| 15 | #endif |