summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/break-in-for.C
blob: 3028cdc804974b8dab8d30c68cb5482e65464a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR17412 - ICE in fold_const.c during parsing.
   fold would try to fold the operands of the break statement.  */
/* { dg-do compile } */
/* { dg-options "" } */
 

void foo ()
{
  for (;;)
    for (;;({break;}));
}