[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / init / ctor9.C
blob02bb5700f3b6e1b473a0ff41b0209af1a8ab4c6e
1 // PR c++/38427
2 // { dg-do compile }
4 struct S
6   int &ref;
7   S() : ref() {};       // { dg-error "value-initialization of" }
8 };