gcc/testsuite/g++.old-deja/g++.benjamin/tem07.C
raw| 1 | // { dg-do run } |
| 2 | |
| 3 | template <class T> |
| 4 | class Foo |
| 5 | { |
| 6 | public: |
| 7 | Foo(const T&); |
| 8 | Foo(const T&, const T&); |
| 9 | }; |
| 10 | |
| 11 | template <class T> |
| 12 | Foo<T>::Foo(const T& t0) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | template <class T> |
| 17 | Foo<T>::Foo(const T& t0, const T& t1) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | template Foo<int>::Foo(const int& t0); |
| 22 | |
| 23 | |
| 24 | int main (void) { |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 |