blob: 9b84c8c3deda3f4ddf854804a2d36bf73ec458dc (
plain)
1
2
3
4
5
6
7
8
|
// PR c++/55240
// { dg-do compile { target c++11 } }
int main()
{
int q = 1; // { dg-error "declared here" }
struct test { int x = q; } instance; // { dg-error "local variable" }
}
|