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
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
new5.C
blob
0d99f93c6348af4e13f74927370116e2c55199ba
1
// { dg-do run }
2
3
#include <new>
4
5
void * operator new[](std::size_t, std::nothrow_t const &) throw()
6
{ return 0; }
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
}