PR c++/80290
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / ctors13.C
blob82f70f35f063ff0cb582c5db2c01fea6169643fc
1 // { dg-do assemble  }
2 // GROUPS passed constructors
3 #include <iostream>
5 class A {
6    A() {}    // private constructor// { dg-message "" } .*
7 };
9 int main() {
10   A* a = new A();// { dg-error "" } .*
11   if (a) {
12      std::cout << "a != NULL\n";
13   } else {
14      std::cout << "a == NULL\n";
15   }