aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/20000209-2.c
blob: 6a9198f6496e7c33b8acfa50fb7cff936aeb0d27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-Wall" } */
/* Distilled from glibc sources.  Tests preprocessor corner cases.
   Since it uses rest args, we must turn off -pedantic-errors.  */

#define NO_PAREN(rest...) rest
#define DEFINE_CATEGORY(category, items) \
const int _nl_value_type_##category[] = { NO_PAREN items }

DEFINE_CATEGORY
(
 LC_COLLATE,
 (
   1,
   2,
   3,
  ));

DEFINE_CATEGORY(LC_CTYPE, (1, 2, 3));