gcc/testsuite/gcc.dg/cpp/20000209-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Wall" } */ |
| 3 | /* Distilled from glibc sources. Tests preprocessor corner cases. |
| 4 | Since it uses rest args, we must turn off -pedantic-errors. */ |
| 5 | |
| 6 | #define NO_PAREN(rest...) rest |
| 7 | #define DEFINE_CATEGORY(category, items) \ |
| 8 | const int _nl_value_type_##category[] = { NO_PAREN items } |
| 9 | |
| 10 | DEFINE_CATEGORY |
| 11 | ( |
| 12 | LC_COLLATE, |
| 13 | ( |
| 14 | 1, |
| 15 | 2, |
| 16 | 3, |
| 17 | )); |
| 18 | |
| 19 | DEFINE_CATEGORY(LC_CTYPE, (1, 2, 3)); |