Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / typename-tmpl-tmpl-parm-ped-neg.C
blob48cb8ab0892e8108c17a8af50d3daa748ee1b5d2
1 // { dg-do compile { target c++1y_down } }
2 // { dg-options "-pedantic" }
4 template<typename T>
5   struct A {};
7 #if __cplusplus >= 201103L
8 template<typename T>
9   using B = int;
10 #endif
12 template<template<typename> class X>
13   struct C {};
15 C<A> ca;
17 #if __cplusplus >= 201103L
18 C<B> cb;
19 #endif
21 template<template<typename> typename X> // { dg-warning "ISO C.. forbids typename key in template template parameter" }
22   struct D {};
24 D<A> da;
26 #if __cplusplus >= 201103L
27 D<B> db;
28 #endif