OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit6.C
1 // { dg-do link  }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 // GROUPS passed templates
4 template <class T>
5 int foo(T t);
6
7 template <>
8 int foo(int i) { return 0; }
9
10 int main()
11 {
12   return foo<int>(3.0);
13 }