OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / ctors13.C
1 // Build don't link: 
2 // GROUPS passed constructors
3 #include <iostream.h>
4
5 class A {
6    A() {}    // private constructor// ERROR - .*
7 }; // WARNING - all member functions are private
8
9 main() {
10   A* a = new A();// ERROR - .*
11   if (a) {
12      cout << "a != NULL\n";
13   } else {
14      cout << "a == NULL\n";
15   }
16 }