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
/
nontype4.C
blob
9ad0ff4f46232c8a71fc32b8d4fc0cb7195149dd
1
// { dg-do assemble }
2
3
template <class R, void (R::* A) (void)>
4
class s
5
{
6
public:
7
s (R &r) : _r (r) {}
8
9
void e (void) { (_r.*A) (); }
10
11
private:
12
R &_r;
13
};
14
15
class x
16
{
17
public:
18
void test1 (void) { int j = 0; }
19
void test2 (void) { int j = 1; }
20
};
21
22
int
23
main (void)
24
{
25
x r;
26
27
s<x, &x::test1> c4 (r);
28
s<x, &x::test2> c5 (r);
29
30
return 0;
31
}