| 1 |
// { dg-do assemble } |
| 2 |
// Testcase for explicit instantiation of templates. |
| 3 |
|
| 4 |
template <class T> |
| 5 |
class A { |
| 6 |
T t; |
| 7 |
public: |
| 8 |
void f () { } |
| 9 |
}; |
| 10 |
|
| 11 |
template class A<int>; |
| 12 |
|
| 13 |
template <class T> T min (T a, T b) { return (a < b ? a : b); } |
| 14 |
|
| 15 |
template int min (int, int); |