URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors13.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed constructors
#include <iostream>
class A {
A() {} // private constructor// { dg-error "" } .*
};
int main() {
A* a = new A();// { dg-error "" } .*
if (a) {
std::cout << "a != NULL\n";
} else {
std::cout << "a == NULL\n";
}
}