Searched refs:new (Results 151 - 175 of 1541) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.robertl/
H A Deb2.C3 inline void *operator new(size_t, void *place) throw() { return place; }
16 new (mybuf) A();
/haiku-buildtools/gcc/gcc/testsuite/go.go-torture/execute/
H A Dpointer-1.go4 p := new(int);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Dinitlist68.C5 void* operator new[](size_t, void *p) { return p; }
10 new (&coord) size_t [2][2]
H A Ddefaulted11.C13 A* ap = new A;
14 ap = new A[2];
H A Dinitlist48.C11 std::initializer_list<up> il{up{new Foo}, up{new Foo}};
H A Dvariadic-new.C5 #include <new>
11 new( &k ) int( args... );
H A Dimplicit11.C15 B* b1 = new B; // { dg-error "use of deleted function" }
16 B* b2 = new B(eb); // { dg-error "use of deleted function" }
H A Dinitlist18.C15 int * a = new int{};
16 int * b = new int{5};
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.law/
H A Dctors17.C20 X *y = new X(10, "123");
22 X *x = new X("abc");// { dg-error "match" }
/haiku-buildtools/legacy/gcc/gcc/cp/inc/
H A Dnew.h6 #include <new>
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/eh/
H A Dnew1.C2 // Test that when a constructor throws in a new-expression, we pass the
7 #include <new>
12 void * operator new[] (std::size_t s)
17 ptr = operator new (s);
39 A *p = new A[4];
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/
H A Dbuiltin-object-size3.C11 int *p = new int;
12 int *q = new int[4];
21 int *p = new int;
22 int *q = new int[4];
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/init/
H A Dnew31.C16 S *s = new S[2];
H A Dpr48859.C13 new ConstMember;
H A Dvolatile2.C12 A *q = new A (i);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/lto/
H A D20081204-1_1.C3 void Func() { new Bar(); }
H A D20081211-1_0.C6 return new foo;
H A D20100724-1_0.C7 void Func() { new Bar(); }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/parse/
H A Dtemplate14.C9 A *p = new A;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/template/
H A Doperator5.C12 A &a = *new A();
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.brendan/
H A Dcrash12.C10 X *x = new X[10]();// { dg-error "" } .*
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Ddelete1.C5 virtual void * operator new (size_t); // { dg-error "" } virtual new
H A Dnew.C2 // Bug: new doesn't make sure that the count is an integral value.
4 #include <new>
9 void * operator new (std::size_t siz)
26 int* b1 = new int[(int)f];
27 int* b2 = new int[f]; // { dg-error "" } new requires integral size
H A Dnew2.C12 A *p = new A ();
H A Dnew3.C2 // { dg-options "-fcheck-new -pedantic -Wno-long-long" }
12 void * operator new (__SIZE_TYPE__ s)
23 void * operator new (__SIZE_TYPE__ s) throw()
34 A *ap = new A;
35 B *bp = new B;

Completed in 146 milliseconds

1234567891011>>