]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/operator-new.dtest/main.cxx
2 // BUILD: $CXX main.cxx -o $BUILD_DIR/operator-new.exe
4 // RUN: ./operator-new.exe
12 // This test case verifies that calling operator new[] in libstdc++.dylib
13 // will turn around and call operator new in this main exectuable
18 void* operator new(size_t s
) throw (std::bad_alloc
)
26 printf("[BEGIN] operator-new\n");
28 char* stuff
= new char[24];
29 if ( (void*)stuff
== ptr
)
30 printf("[PASS] operator-new\n");
32 printf("[FAIL] operator-new\n");