summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/macro4.c
blob: ceaf8ddbfa419988035a8f44c2cdf907a51ba1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Copyright (C) 2000 Free Software Foundation, Inc.  */

/* { dg-do preprocess } */

/* Test source Neil Booth.  */

#define glue(x, y) x ## y
#define xglue(x, y) glue (x, y)

/* Should expand to glue (1, 2), then 12.  */
#if glue (xgl, ue) (1, 2) != 12
#error glue macro
#endif