Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-defer7.C
blob3bef636ccbd2e7cfc9e3583cf08bf4e269634087
1 // PR c++/118147
2 // { dg-do compile { target c++11 } }
4 struct F {
5   int i = []{
6     #pragma message "test"  // { dg-message "test" }
7     return 1;
8   }();
9 };
11 struct G {
12   int i =
13     #pragma GCC diagnostic push  // { dg-error "file ends in default argument|expected" }