1
/* e_23_3.c: ## operator shall not occur at the beginning or at the end of
2
replacement list for either form of macro definition. */
4
/* { dg-do preprocess } */
6
/* 23.3: In object-like macro. */
7
#define con ## name /* { dg-error "'##' cannot appear at either end of a macro expansion| `##' at start of macro definition| No token before ##" } */
8
#define cat 12 ## /* { dg-error "'##' cannot appear at either end of a macro expansion| No token after ##" } */
10
/* 23.4: In function-like macro. */
11
#define CON( a, b) ## a ## b /* { dg-error "'##' cannot appear at either end of a macro expansion| `##' at start of macro definition| No token before ##" } */
12
#define CAT( b, c) b ## c ## /* { dg-error "'##' cannot appear at either end of a macro expansion| No token after ##" } */