☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-err1.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist-err1.C
code
plain
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" }