Searched refs:new (Results 201 - 225 of 1541) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.mike/
H A Dnet46.C5 #include <new>
11 void *operator new(size_t size)
24 new int;
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dnew6.C2 // Test that we properly default-initialize the new int when () is given.
4 #include <new>
11 void *operator new (size_t size)
24 int *p = new int();
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.robertl/
H A Deb15.C10 void *operator new(size_t sz) {
12 return ::operator new(sz);
22 new A();
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/parse/
H A Dusing4.C6 void* operator new (__SIZE_TYPE__, void*);
12 using allocator::operator new;
18 new (0) type;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Ddefaulted19a.C13 void *operator new[](__SIZE_TYPE__ t)
15 p = ::operator new (t);
21 A* ap = new A[5];
H A Dinitlist53.C6 void * operator new[] (__SIZE_TYPE__, void *p) { return p; }
16 new A[1]{};
18 int *p = new (space) int[1]{};
H A Dauto32.C4 template <class T> auto f(T t) -> decltype (new auto(t));
H A Dimplicit13.C21 void *operator new(__SIZE_TYPE__, void*) noexcept;
24 SA(noexcept(new (&d) D));
28 SA(noexcept (new (&e) E));
32 SA(noexcept (new (&f) F));
H A Dinitlist61.C8 A* ap = new A{1,2};
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.bugs/
H A D900520_04.C7 // new.
34 int* ip = new int (1); // { dg-bogus "" }
35 double* dp = new double (9.9); // { dg-bogus "" }
36 charp* cpp0 = new charp (cp); // { dg-bogus "" }
37 charp* cpp1 = new charp (0); // { dg-bogus "" }
38 enum e_type* ep = new e_type (e_value); // { dg-bogus "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/init/
H A Dnew38.C6 new char[n]
15 new char[n]
25 new T[n] // { dg-error "size of array is too large" }
34 new T[n] // { dg-error "size of array is too large" }
43 new T[n] // { dg-error "size of array is too large" }
H A Dnew37.C6 new (long[n][n]); // { dg-error "variable length|array size|not a constant|runtime bound" }
7 new long[n][n]; // { dg-error "variable length|array size|not a constant" }
14 return new long[n][T::n];
21 return new long[n][T::n]; // { dg-error "variable length|array size|usable in a constant" }
28 return new long[T::n]; // { dg-error "size in array new" }
35 return new T[2][T::n]; // { dg-error "size of array has non-integral type" }
57 new long[0.2]; // { dg-error "integral or enumeration type" }
H A Dnew40.C1 // Testcase for overflow handling in operator new[].
21 void *operator new[] (size_t sz)
33 void *operator new[] (size_t sz)
48 operator new (size_t sz) _GLIBCXX_THROW (std::bad_alloc)
64 new pod_with_new[magic_allocation_size];
75 new with_new[magic_allocation_size];
82 new char[magic_allocation_size];
90 new pod_with_new[magic_allocation_size][2];
96 new with_new[magic_allocation_size][2];
102 new cha
[all...]
H A Dnew26.C14 inline void *operator new(__SIZE_TYPE__)
28 q = new float;
31 r = new int;
H A Dnew30.C11 // array new as default argument required to reproduce compiler bug
12 ptr_type (data_type* ptr = new data_type[1]) { delete[] ptr; }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/abi/
H A Dmangle51.C4 void* operator new (__SIZE_TYPE__, void *p) { return p; }
9 template <class T> void check1( helper<sizeof(new T)> * ) { }
11 template <class T> void check2( helper<sizeof(::new T())> * ) { }
13 template <class T> void check3( helper<sizeof(new (&i) T(1))> * ) { }
15 template <class T> void check3a( helper<sizeof(new T{1})> * ) { }
17 template <class T> void check4( helper<sizeof(new T[1])> * ) { }
19 template <class T> void check5( helper<sizeof(new T[1]())> * ) { }
/haiku-buildtools/legacy/gcc/texinfo/info/
H A Dgc.c52 char **new = (char **)NULL; local
71 (node->contents, new_index, new, new_slots, 10, char *);
78 of the original pointers which do not appear in the new list. */
82 if (gcable_pointers[i] == new[j])
85 /* If we got all the way through the new list, then the old pointer
87 if (new && !new[j])
92 gcable_pointers = new;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/torture/
H A Dpr33340.C1 void* operator new(__SIZE_TYPE__, void* __p) { }
11 ::new(0) T(__x);
21 ap.p = new int();
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.brendan/
H A Dnew3.C2 // library version of "::operator new[]" calling the "::operator new"
4 // of "::operator new[]" is built into the kernel itself; library relocations
8 // Avoid use of none-overridable new/delete operators in shared
10 // GROUPS passed operator-new
13 #include <new>
17 void *operator new(size_t sz)
42 A *bb = new A[10];
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dvecdel.C7 void * operator new [] (__SIZE_TYPE__ i)
8 { newsize = i; return ::operator new [](i); }
15 A* ap = new A [2];
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.law/
H A Doperators23.C3 // 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];
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ubsan/
H A Dnull-2.C5 #include <new>
28 V *u = new (q) V;
30 V *v = new (q) V;
/haiku-buildtools/gcc/fixincludes/tests/base/Xm/
H A DTraversal.h17 Widget old, new;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/conversion/
H A Dsimd4.C22 new int[t];
23 new int[u]; // { dg-error "new-declarator must have integral" }
24 new int[v]; // { dg-error "new-declarator must have integral" }
25 new int[w]; // { dg-error "new-declarator must have integral" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/gomp/
H A Dpr26823-1.C21 new int;

Completed in 121 milliseconds

1234567891011>>