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++.brendan
/
misc3.C
blob
c2a116519548a45e6c58e51b80adde0c7d30efd4
1
// { dg-do assemble }
2
// GROUPS passed miscellaneous-bugs
3
// The compiler should not error about taking the addr of main in this example.
4
class fred {
5
private:
6
void main () {
7
}
8
public:
9
fred ( ) {
10
&fred::main;
11
}
12
};