Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-err3.C
blobb77ec9bf4e96cc7fdc3ba60b463e3cb7cf91535d
1 // PR c++/101232
2 // { dg-do compile { target c++11 } }
4 struct X {
5     int a;
6     int b;
7 };
9 void f() {
10     auto x = X{ 1, {2 };        // { dg-error "expected.*before" }