aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr51216.C
blob: 356b628e45198b3bd73128567dd4a68d637597ed (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/51216
// { dg-do compile { target c++11 } }
// { dg-options "" }

void foo()
{
  int i = ({ if (1) ; });           // { dg-error "ignored" }
  int j = ({ for (;;) ; });         // { dg-error "ignored" }
  int k = ({ while (1) ; });        // { dg-error "ignored" }
  int l = ({ do { } while (1); });  // { dg-error "ignored" }
}