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
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
blob
1442b02eb56d23a5826c87e001db709b8c2136d7
1
// Build don't link:
2
// GROUPS passed constructors
3
#include <iostream>
4
5
class A {
6
A() {} // private constructor// ERROR - .*
7
};
8
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
}
16
}
17
18