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

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