Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/range-for31.C

raw
1 // PR c++/71604
2 // { dg-do compile { target c++11 } }
3
4 void foo ()
5 {
6 int a[2] = { 1, 2 };
7 for (struct S { S (int) {} } S : a) // { dg-error "types may not be defined" }
8 ;
9 }