repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
spec11.C
blob
8d7a04e552791d8275902b3eaa4f58a470c8f55f
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
template <>
12
template <>
13
int S<char>::f(int i) { return 1; }
14
15
int main()
16
{
17
S<char> sc;
18
19
if (sc.f(3) != 1)
20
abort();
21
}