repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
ctors13.C
blob
82f70f35f063ff0cb582c5db2c01fea6169643fc
1
// { dg-do assemble }
2
// GROUPS passed constructors
3
#include <iostream>
4
5
class A {
6
A() {} // private constructor// { dg-message "" } .*
7
};
8
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
}
16
}
17
18