view gcc/testsuite/gcc.dg/cpp/macro4.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* 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