summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/pr58844-1.c
blob: 2a2e277b0fcbc6a672ea813d3923a1bb4dd83409 (plain)
1
2
3
4
5
6
7
8
/* PR preprocessor/58844 */
/* { dg-do compile } */
/* { dg-options "-ftrack-macro-expansion=0" } */

#define A x######x
int A = 1;
#define A x######x	/* { dg-message "-:previous definition" } */
#define A x##x		/* { dg-warning "-:redefined" } */