HomeSort by relevance Sort by last modified time
    Searched defs:new (Results 26 - 50 of 341) sorted by null

12 3 4 5 6 7 8 91011>>

  /ndk/tests/device/test-stlport_shared-exception/jni/
new23.cpp 6 inline void *operator new (size_t, void *p) throw () { return p; }
13 unsigned *data = new unsigned[2 * num];
16 (i % 2 == 0) ? new (ptr) unsigned (2) : new (ptr++) unsigned (1);
new6.cpp 2 // Test that we properly default-initialize the new int when () is given.
4 #include <new>
11 void *operator new (size_t size) throw (bad_alloc)
21 int *p = new int();
operators23.cpp 3 // opr-new file
6 // Subject: g++-2.3.1 : Incorrectly calls overloaded operator new
17 void *operator new(size_t size) throw();
25 void *blah::operator new(size_t size) throw(){
34 blahPtr = new blah[100];
operators27.cpp 3 // opr-new file
6 // Subject: G++ 2.4.3 and operator new
11 #include <new>
16 void * operator new(size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; }
29 K * pK = new (std::nothrow) K( 10);
  /ndk/tests/device/test-stlport_static-exception/jni/
new1_4.cpp 10 #include <new>
15 void* operator new(size_t size, double = 0.0) { return ::operator new(size);}
20 int main() { try { new A; } catch(...) {} }
new23.cpp 6 inline void *operator new (size_t, void *p) throw () { return p; }
13 unsigned *data = new unsigned[2 * num];
16 (i % 2 == 0) ? new (ptr) unsigned (2) : new (ptr++) unsigned (1);
new6.cpp 2 // Test that we properly default-initialize the new int when () is given.
4 #include <new>
11 void *operator new (size_t size) throw (bad_alloc)
21 int *p = new int();
operators23.cpp 3 // opr-new file
6 // Subject: g++-2.3.1 : Incorrectly calls overloaded operator new
17 void *operator new(size_t size) throw();
25 void *blah::operator new(size_t size) throw(){
34 blahPtr = new blah[100];
operators27.cpp 3 // opr-new file
6 // Subject: G++ 2.4.3 and operator new
11 #include <new>
16 void * operator new(size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; }
29 K * pK = new (std::nothrow) K( 10);
  /external/clang/test/CXX/expr/expr.unary/expr.new/
p19.cpp 4 // Operator delete template for placement new with global lookup
9 static void* operator new(size_t) {
19 // Using the global operator new suppresses the search for a
21 ::new X0<2>;
23 new X0<3>; // expected-note 2{{instantiation}}
26 // Operator delete template for placement new[] with global lookup
31 static void* operator new[](size_t) {
41 // Using the global operator new suppresses the search for a
43 ::new X1<2> [17];
45 new X1<3> [17]; // expected-note 2{{instantiation}
    [all...]
  /external/clang/test/SemaCXX/
warn-new-overaligned.cpp 15 new Test; // expected-warning {{type 'test1::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
16 new Test[10]; // expected-warning {{type 'test1::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
28 new Test; // expected-warning {{type 'test2::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
29 new Test[10]; // expected-warning {{type 'test2::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
40 void* operator new(unsigned long) {
49 new Test;
50 new Test[10]; // expected-warning {{type 'test3::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
61 void* operator new[](unsigned long) {
70 new Test; // expected-warning {{type 'test4::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
71 new Test[10]
    [all...]
  /external/compiler-rt/lib/asan/
asan_new_delete.cc 12 // Interceptors for operators new and delete.
30 // On Android new() goes through malloc interceptors.
34 // Fake std::nothrow_t to avoid including <new>.
43 // On OS X it's not enough to just provide our own 'operator new' and
46 // dylib and libstdc++, each of those'll have its implementation of new and
52 void *operator new(size_t size) { OPERATOR_NEW_BODY(FROM_NEW); }
54 void *operator new[](size_t size) { OPERATOR_NEW_BODY(FROM_NEW_BR); }
56 void *operator new(size_t size, std::nothrow_t const&)
59 void *operator new[](size_t size, std::nothrow_t const&)
  /external/compiler-rt/lib/msan/
msan_new_delete.cc 12 // Interceptors for operators new and delete.
28 // Fake std::nothrow_t to avoid including <new>.
38 void *operator new(size_t size) { OPERATOR_NEW_BODY; }
39 void *operator new[](size_t size) { OPERATOR_NEW_BODY; }
40 void *operator new(size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
41 void *operator new[](size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
  /external/oprofile/libutil++/tests/
utility_tests.cpp 13 #include <new>
24 void* operator new(size_t size) throw(bad_alloc)
30 void* operator new[](size_t size) throw(bad_alloc)
54 cerr << "new(size_t) leak\n";
59 cerr << "new[](size_t) leak\n";
70 scoped_ptr<A> a(new A);
72 scoped_ptr<A> a(new A);
83 scoped_array<A> b(new A[10]);
85 scoped_array<A> a(new A[10]);
  /external/valgrind/main/massif/tests/
overloaded-new.cpp 1 // operator new(unsigned)
2 // operator new[](unsigned)
3 // operator new(unsigned, std::nothrow_t const&)
4 // operator new[](unsigned, std::nothrow_t const&)
8 #include <new>
17 __attribute__((noinline)) void* operator new (std::size_t n) throw (std::bad_alloc)
22 __attribute__((noinline)) void* operator new (std::size_t n, std::nothrow_t const &) throw ()
27 __attribute__((noinline)) void* operator new[] (std::size_t n) throw (std::bad_alloc)
32 __attribute__((noinline)) void* operator new[] (std::size_t n, std::nothrow_t const &) throw ()
49 s* p1 = new s
    [all...]
  /external/webkit/Source/WebCore/bindings/js/
ScriptFunctionCall.h 72 void* operator new(size_t) { ASSERT_NOT_REACHED(); return reinterpret_cast<void*>(0xbadbeef); }
73 void* operator new[](size_t) { ASSERT_NOT_REACHED(); return reinterpret_cast<void*>(0xbadbeef); }
  /ndk/sources/cxx-stl/gabi++/src/
new.cc 30 #include <new>
62 void* operator new(std::size_t size) throw(std::bad_alloc) {
78 void* operator new(std::size_t size, const std::nothrow_t& no) throw() {
80 ::operator new(size);
87 void* operator new[](std::size_t size) throw(std::bad_alloc) {
88 return ::operator new(size);
92 void* operator new[](std::size_t size, const std::nothrow_t& no) throw() {
93 return ::operator new(size, no);
  /ndk/sources/cxx-stl/llvm-libc++/src/
new.cpp 1 //===--------------------------- new.cpp ----------------------------------===//
12 #include "new"
23 // shared libray. The global holding the current new handler is
36 // Implement all new and delete operators as weak definitions
42 operator new(std::size_t size)
69 operator new(size_t size, const std::nothrow_t&) _NOEXCEPT
76 p = ::operator new(size);
88 operator new[](size_t size)
93 return ::operator new(size);
98 operator new[](size_t size, const std::nothrow_t&) _NOEXCEP
    [all...]
  /external/ipsec-tools/src/racoon/
throttle.c 124 * No match, if auth failed, allocate a new throttle entry
144 time_t new; local
147 new = remaining + isakmp_cfg_config.auth_throttle;
149 if (new > THROTTLE_PENALTY_MAX)
150 new = THROTTLE_PENALTY_MAX;
152 te->penalty = now + new;
vmbuf.c 124 vchar_t *new; local
131 if ((new = vmalloc(src->l)) == NULL)
134 memcpy(new->v, src->v, src->l);
136 return new;
  /external/llvm/include/llvm/IR/
GlobalAlias.h 38 void *operator new(size_t s) {
39 return User::operator new(s, 1);
  /external/qemu/elff/
elf_alloc.cc 39 /* Allocate new chunk. */
60 void* DwarfAllocBase::operator new(size_t size, const ElfFile* elf) {
  /external/webkit/Source/WebCore/rendering/
BidiRun.cpp 55 void* BidiRun::operator new(size_t sz, RenderArena* renderArena) throw()
  /ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.stdcvt/
codecvt_utf16.pass.cpp 28 void* operator new(std::size_t s) throw(std::bad_alloc)
53 std::locale loc(std::locale::classic(), new C);
codecvt_utf8.pass.cpp 28 void* operator new(std::size_t s) throw(std::bad_alloc)
53 std::locale loc(std::locale::classic(), new C);

Completed in 209 milliseconds

12 3 4 5 6 7 8 91011>>