annotate gcc/testsuite/g++.dg/warn/private1.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // g++ should not complain about A having private [cd]tors.
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 class A
kono
parents:
diff changeset
4 {
kono
parents:
diff changeset
5 A();
kono
parents:
diff changeset
6 ~A();
kono
parents:
diff changeset
7 public:
kono
parents:
diff changeset
8 int dummy(); // needed to get bogus warning
kono
parents:
diff changeset
9 static A* get_A ();
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 A* A::get_A()
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 static A a;
kono
parents:
diff changeset
15 return &a;
kono
parents:
diff changeset
16 }