☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
spec12.C
☽
☼
gcc/testsuite/g++.old-deja/g++.pt/spec12.C
code
plain
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
}