repo.or.cz
/
android_tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git]
/
ndk
/
tests
/
device
/
test-stlport_shared-exception
/
jni
/
new5.cpp
blob
45335ff77329f9532da64ad17f3aacc4fc3f5aba
1
// { dg-do run }
2
3
#include <new>
4
#include <stddef.h>
5
#include <stdio.h>
6
7
void
*
operator
new
[](
size_t
,
std
::
nothrow_t
const
&)
throw
()
8
{
return
NULL
; }
9
10
struct
X
{
11
struct
Inner
{ ~
Inner
() {} };
12
13
X
() {
14
Inner
*
ic
=
new
(
std
::
nothrow
)
Inner
[
1
];
// SegFault here
15
}
16
};
17
18
int
main
() {
19
X table
;
20
}