summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/spellcheck-pr83056.c
blob: 8b90887bda024728fc773dd9ec53c67031f51805 (plain)
1
2
3
4
5
6
7
8
9
10
11
enum { TYPE_A };

/* Verify that the incorrect "TYPE_B" etc don't get re-used for
   suggestions for the later incorrect values.  */

void pr83056(void)
{
  int b = TYPE_B; /* { dg-error "did you mean 'TYPE_A'" } */
  int c = TYPE_C; /* { dg-error "did you mean 'TYPE_A'" } */
  int d = TYPE_D; /* { dg-error "did you mean 'TYPE_A'" } */
}