☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
spec9.C
☽
☼
gcc/testsuite/g++.old-deja/g++.pt/spec9.C
code
plain
raw
1
// { dg-do assemble }
2
extern "C" void abort();
3
4
template <class T>
5
inline int f(T t)
6
{
7
return 0;
8
}
9
10
int main()
11
{
12
if (!f(3))
13
abort();
14
}
15
16
template <>
17
int f(int i) // { dg-error "specialization\[^\n\]*after instantiation" }
18
{
19
return 1;
20
}
21
22