annotate gcc/testsuite/g++.dg/cpp0x/variadic96.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
kono
parents:
diff changeset
2 // Origin: PR c++/41785
kono
parents:
diff changeset
3 // { dg-do compile { target c++11 } }
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 struct a {};
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 template < typename T, typename ENCLOSING >
kono
parents:
diff changeset
8 struct base;
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 template < typename... T >
kono
parents:
diff changeset
11 struct derived
kono
parents:
diff changeset
12 : public base< T, derived< T... > >...
kono
parents:
diff changeset
13 {};
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 template < typename... T>
kono
parents:
diff changeset
16 struct base< a, derived< T... > >
kono
parents:
diff changeset
17 {
kono
parents:
diff changeset
18 typedef derived< T... >
kono
parents:
diff changeset
19 Derived;
kono
parents:
diff changeset
20 };
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 int main()
kono
parents:
diff changeset
23 {
kono
parents:
diff changeset
24 derived< a > instance;
kono
parents:
diff changeset
25 }
kono
parents:
diff changeset
26