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) \
8const int _nl_value_type_##category[] = { NO_PAREN items }
9
10DEFINE_CATEGORY
11(
12 LC_COLLATE,
13 (
14   1,
15   2,
16   3,
17  ));
18
19DEFINE_CATEGORY(LC_CTYPE, (1, 2, 3));
20