Skip to content

Commit 438d3eb

Browse files
committed
Rename main functions to something else
1 parent 4ee9469 commit 438d3eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/CXX/drs/cwg2xx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Member_type get(Class &c) {
138138

139139
void call(int (*f)(Derived &)); // #cwg203-ex5-call
140140

141-
int main() {
141+
int f() {
142142
// ill-formed, contrary to Core issue filing:
143143
// `&Derived::b` yields `int Derived::*`, which can't initialize NTTP of type `int Base::*`,
144144
// because (implicit) pointer-to-member conversion doesn't upcast.
@@ -166,7 +166,7 @@ struct Derived : private Base { // #cwg203-ex6-Derived
166166
using Base::a; // make `a` accessible
167167
};
168168

169-
int main() {
169+
int f() {
170170
Derived d;
171171
int b = d.a;
172172
// FIXME: in the diagnostic below, Base is fully qualified, but Derived is not

0 commit comments

Comments
 (0)