Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/spec12.C

raw
1 // { dg-do run }
2 extern "C" void abort();
3
4 template <class T>
5 struct S
6 {
7 template <class U>
8 int f(U u);
9 };
10
11
12 template <>
13 template <>
14 int S<char>::f<int>(int i) { return 1; }
15
16 int main()
17 {
18 S<char> sc;
19
20 if (sc.f(3) != 1)
21 abort();
22 }