Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
private1.C
blob: c42d6b7e328469a21aa899d3bbc8bcb636e020ea [
file
] [
log
] [
blame
]
// g++ should not complain about A having private [cd]tors.
class
A
{
A
();
~
A
();
public
:
int
dummy
();
// needed to get bogus warning
static
A
*
get_A
();
};
A
*
A
::
get_A
()
{
static
A a
;
return
&
a
;
}