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
blob45335ff77329f9532da64ad17f3aacc4fc3f5aba
1 // { dg-do run }
3 #include <new>
4 #include <stddef.h>
5 #include <stdio.h>
7 void * operator new[](size_t, std::nothrow_t const &) throw()
8 { return NULL; }
10 struct X {
11 struct Inner { ~Inner() {} };
13 X() {
14 Inner * ic = new (std::nothrow) Inner[1]; // SegFault here
18 int main() {
19 X table;