OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Formatting fixes.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp19.C
1
// { dg-do link }
2
// GROUPS passed templates membertemplates
3
extern "C" int printf(const char*, ...);
4
5
struct S {
6
template <class T>
7
operator T();
8
};
9
10
template <class T>
11
S::operator T()
12
{
13
printf("Hello, world.\n");
14
return T();
15
}
16
17
18
template S::operator int();
19
20
int main()
21
{
22
S s;
23
24
int i = s.operator int();
25
}