PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / injected-ttp.C
blob5ef4a4ec4f1e5404602ef769314a4c44fc9515c2
1 // Test for doing the right thing with injected-class-name used as template
2 // type argument.  This is an extension from DR 176.
4 // { dg-options "-pedantic -std=c++98" }
6 template <class T>
7 struct A { };
9 template <template <class> class TTP>
10 struct B { };
12 struct C: A<int>
14   B<A> b;                       // { dg-warning "injected-class-name" }