Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/typename-tmpl-tmpl-parm.C

raw
1 // { dg-do compile }
2 // { dg-options "" }
3
4 template<typename T>
5 struct A {};
6
7 #if __cplusplus >= 201103L
8 template<typename T>
9 using B = int;
10 #endif
11
12 template<template<typename> class X>
13 struct C {};
14
15 C<A> ca;
16
17 #if __cplusplus >= 201103L
18 C<B> cb;
19 #endif
20
21 template<template<typename> typename X>
22 struct D {};
23
24 D<A> da;
25
26 #if __cplusplus >= 201103L
27 D<B> db;
28 #endif