Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-local.C

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