Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/nttp1.C

raw
1 // { dg-do run }
2 // Test for nested template template parameter feature
3
4 template <template<template <class> class> class TTT> struct C
5 {
6 int f();
7 };
8
9 template <template<template <class> class> class TTT> int C<TTT>::f()
10 {
11 return 0;
12 }
13
14 template <template <class> class TT> struct D
15 {
16 };
17
18 int main()
19 {
20 C<D> c;
21 c.f();
22 }