Add an UNSPEC_PROLOGUE_USE to prevent the link register from being considered dead.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / ctors13.C
blob1442b02eb56d23a5826c87e001db709b8c2136d7
1 // Build don't link: 
2 // GROUPS passed constructors
3 #include <iostream>
5 class A {
6    A() {}    // private constructor// ERROR - .*
7 };
9 int main() {
10   A* a = new A();// ERROR - .*
11   if (a) {
12      std::cout << "a != NULL\n";
13   } else {
14      std::cout << "a == NULL\n";
15   }