OSDN Git Service

* g++.dg/template/spec10.C: Set exit value to zero on success. Fix
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / unify3.C
1 // Test unifying SCOPE_REF.
2 // Origin: Marc Duflot <m.duflot@ulg.ac.be>
3 // { dg-do compile }
4
5 template <int n> class A {};
6 template <int m> class R {};
7
8 template <int n> struct Trait { enum {m = n}; };
9
10 template <int n> R<Trait<n>::m> f(A<n>);
11 template <> R<1> f(A<1>) {return R<1>();}