Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/injected-ttp.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// Test for doing the right thing with injected-class-name used as template // type argument. This is an extension from DR 176. // { dg-options "-pedantic -std=c++98" } template <class T> struct A { }; template <template <class> class TTP> struct B { }; struct C: A<int> { B<A> b; // { dg-warning "injected-class-name" } };