aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/ctors13.C
blob: 1442b02eb56d23a5826c87e001db709b8c2136d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link: 
// GROUPS passed constructors
#include <iostream>

class A {
   A() {}    // private constructor// ERROR - .*
};

int main() {
  A* a = new A();// ERROR - .*
  if (a) {
     std::cout << "a != NULL\n";
  } else {
     std::cout << "a == NULL\n";
  }
}