summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash2.C
blob: ccf89ccc86eba87f1ef82a47bcc796d3fd207ee7 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
int main(void)
{
  char x, y;
  if ('A' == x) && ('B' == y)) { } /* { dg-error "" } */
  if (x == 'A') && (y == 'B')) { } /* { dg-error "" } */
}