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