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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit12.C
blob
ac8b7c5aa1261fe12cf5c13eceb6dd378699fd97
1
// { dg-do link }
2
// { dg-options "-ansi -pedantic-errors -w" }
3
// GROUPS passed templates
4
template <class U>
5
struct S
6
{
7
template <class T>
8
void foo(T t);
9
};
10
11
12
template <>
13
template <>
14
void S<char*>::foo<int>(int) {}
15
16
int main()
17
{
18
S<char*> s;
19
s.foo<int>(3.0);
20
}