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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.dg
/
init
/
new5.C
blob
3a5981e075cae68d684298e9331ef5115ae29458
1
// { dg-do run }
2
3
#include <new>
4
5
void * operator new[](size_t, std::nothrow_t const &) throw()
6
{ return NULL; }
7
8
struct X {
9
struct Inner { ~Inner() {} };
10
11
X() {
12
Inner * ic = new (std::nothrow) Inner[1]; // SegFault here
13
}
14
};
15
16
int main() {
17
X table;
18
}