1 // Test for range-based for loop with arrays of
2 // incomplete type or unknown size
4 // { dg-do compile { target c++11 } }
16 for (int n : b); // { dg-error "incomplete type" }
17 for (S &n : c); // { dg-error "incomplete type" }
18 for (S &n : d); // { dg-error "incomplete type" }
19 for (int n : *c); // { dg-error "incomplete type" }