Commit 913135df by Mark Mitchell

Adjust for new warning behavior

From-SVN: r23119
parent 409666f7
......@@ -4,7 +4,7 @@
class A {
A() {} // private constructor// ERROR - .*
}; // WARNING - all member functions are private
};
main() {
A* a = new A();// ERROR - .*
......
// Build don't link:
// Special g++ Options: -Wshadow
// GROUPS passed niklas scoping ARM
class X { X (int); }; // WARNING - private
class X { X (int); };
void X (int);// ERROR - .*hides constructor.*
void f () { X (1); }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment