gcc/testsuite/gcc.dg/cpp/pr29612-2.c
raw| 1 | /* PR preprocessor/29612 */ |
| 2 | /* { dg-do preprocess } */ |
| 3 | /* { dg-options "-Wtraditional" } */ |
| 4 | |
| 5 | # 6 "pr29612-2.c" |
| 6 | |
| 7 | #if 1U /* { dg-warning "traditional C rejects" "numeric constant suffix" } */ |
| 8 | #endif |
| 9 | |
| 10 | # 1 "foo.h" 1 3 |
| 11 | |
| 12 | #if 1U |
| 13 | #endif /* No warning in system header. */ |
| 14 | |
| 15 | # 16 "pr29612-2.c" 2 |
| 16 | |
| 17 | #if 1U /* { dg-warning "traditional C rejects" "numeric constant suffix" } */ |
| 18 | #endif |