OSDN Git Service

* gcc.dg/tm/memopt-6.c: Cleanup tmedge tree dump.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / spec3.C
1 // PR c++/3870
2 // Test that performing a type instantiation in order to match up a
3 // specialization doesn't clobber last_function_parms.
4
5 template <class T>
6 struct A { typedef int I; };
7
8 template <class T>
9 inline typename T::I
10 foo (typename T::I, const T*);
11
12 template <>
13 int foo (int i, const A<long>*)
14 {
15     return i + 1;
16 }