Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / deduce2.C
blobbcf77b30b78b5fa5465dc1f6f7966c64eed6a429
1 template <typename T0> struct tuple {
2     typedef tuple<int> tail;
3 };
5 template <> struct tuple<int> {
6 };
8 template <typename L>
9 struct length  {
10   static const int i = length<typename tuple<L>::tail>::i;
13 template<>
14 struct length<tuple<int> > {
15     static const int i = 1;
18 template <int> struct M {};
20 template <typename A>
21 M<length<tuple<A> >::i > foo (A*);
23 template <typename A>
24 M<length<tuple<A> >::i> foo (const A*);
26 const int i1 = 3;
28 void bar() {
29   foo (&i1);