Debian Codegraph @

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

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