1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// Build don't link: // GROUPS passed constructors #include <iostream.h> class A { A() {} // private constructor// ERROR - .* }; int main() { A* a = new A();// ERROR - .* if (a) { cout << "a != NULL\n"; } else { cout << "a == NULL\n"; } }