summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit31.C
blob: e4f6a5b13e5b30597be78b7f53249607e0b21dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do link  }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template <class T>
struct S
{
  template <class U>
  static double foo(U u) { return (double) u; }
};


int main()
{
  double d = S<int>::foo<char>(3.3);

  return (d >= 3.1);
}