Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-err1.C

raw
1 // PR c++/101232
2 // { dg-do compile { target c++11 } }
3
4 struct X {
5 int a;
6 int b;
7 };
8
9 void f() {
10 auto x = X{ 1, 2; }; // { dg-error "21:" }
11 } // { dg-prune-output "expected declaration" }