blob: 82f70f35f063ff0cb582c5db2c01fea6169643fc [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed constructors
#include <iostream>
class A {
A() {} // private constructor// { dg-message "" } .*
};
int main() {
A* a = new A();// { dg-error "" } .*
if (a) {
std::cout << "a != NULL\n";
} else {
std::cout << "a == NULL\n";
}
}