FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit31.C
blob54f0b6c2270f2f96cdaa6046115004828e39d3a1
1 // Build don't run:
2 // GROUPS passed templates
3 // Special g++ Options: -ansi -pedantic-errors -w
4 template <class T>
5 struct S
7   template <class U>
8   static double foo(U u) { return (double) u; }
9 };
12 int main()
14   double d = S<int>::foo<char>(3.3);
16   return (d >= 3.1);