repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
warn
/
private1.C
blob
c42d6b7e328469a21aa899d3bbc8bcb636e020ea
1
// g++ should not complain about A having private [cd]tors.
2
3
class A
4
{
5
A();
6
~A();
7
public:
8
int dummy(); // needed to get bogus warning
9
static A* get_A ();
10
};
11
12
A* A::get_A()
13
{
14
static A a;
15
return &a;
16
}