Debian Codegraph @

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

raw
1 // PR c++/113141
2 // { dg-do compile { target c++11 } }
3
4 struct ConvToRef {
5 operator int&();
6 };
7
8 struct A { int& r; };
9
10 void f(A);
11
12 int main() {
13 ConvToRef c;
14 A a{{c}};
15 f({{c}});
16 }