[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / init / synth3.C
blobd656ddb2e05ffb793a509e8b0ad17069378b8367
1 // Test that synthesizing the C copy constructor doesn't require B<int> to
2 // be complete.
4 template <class T>
5 struct B
7   typename T::NT nt;
8 };
10 struct A
12   A ();
13   A (const A&);
14   A (const B<int>&);
17 struct C: A { };
19 C c;
20 C c2(c);