Searched refs:new (Results 26 - 50 of 1541) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.law/
H A Dbad-error3.C6 // Subject: g++-2.6.0 gives wrong warning for placement syntax new
12 void * operator new(size_t, int *);
13 void * operator new(size_t, void *);
17 new (x) int *;
18 new (&x) int *;
19 new (x) int *; // This is identical to line 8 !!!
H A Dbad-error4.C5 void * operator new(size_t, int *);
6 void * operator new(size_t, void *);
10 new (x) int *;
11 new (&x) int *;
12 new (x) int *; // This is identical to line 8 !!!
H A Dcvt14.C13 d = new double(10);
H A Dcvt22.C13 int* a1 = new A;
H A Doperators25.C3 // opr-new file
13 PPF pf2 = new (int (*) (int)); // internal compiler error on this line.
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/init/
H A Dnew35.C8 new A; // { dg-warning "array" }
9 new A[0]; // { dg-error "must be constant|not a constant" }
10 new A[5]; // { dg-error "must be constant|not a constant" }
11 new (A[0]); // { dg-error "must be constant|not a constant" }
12 new (A[5]); // { dg-error "must be constant|not a constant" }
H A Dplacement1.C2 // We were expanding the same TARGET_EXPR twice, for placement new and
5 void* operator new (__SIZE_TYPE__, void*) throw();
10 void foo() { new(new A)A; }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/lookup/
H A Dnew1.C3 // PR c++/2518: operator new must not be looked up in local scope
7 void* operator new(__SIZE_TYPE__ s, int* p);
8 int* e = new(&i) int; // { dg-error "no matching function" }
9 int* f = new int;
13 // { dg-message "operator new|candidate expects" "" { target *-*-* } 0 }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/tree-ssa/
H A Dpr19476-2.C4 #include <new>
7 int *p = new(std::nothrow) int;
11 int *p = new int[50];
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/abi/
H A Dguard1.C7 static int &i = *new int();
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/
H A Dvector4.C3 // Testing if we can do a new of a vector
6 void* q = new int __attribute__((vector_size(8))) ();
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/lto/
H A D20080910-1_0.C2 struct Foo { Foo(int); }; void func() { new Foo(0); }
H A D20081125_1.C6 return new object ();
H A D20081127_0.C2 static void func() { new Foo(); }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/parse/
H A Dcrash29.C9 A(void* = &operator new);
H A Dnew5.C4 A* ap = new(struct: A { }); // { dg-error "types may not be defined" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/template/
H A Ddependent-name1.C5 // PR c++/10347: Dependent type checking of array new expression
10 bar(new int[1]);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/torture/
H A Dstr_empty.C12 new polynomial[0]; // { dg-bogus "allocating zero-element array" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.bugs/
H A D900208_03.C8 // allocate a function using new.
10 // keywords: operator new, function types
16 new func_type; // { dg-error "" } missed by both cfront 2.0 and g++ 1.36.1
H A D900211_03.C8 // keywords: segfault, operator new, arrays, undeclared, array bound
12 char* new_base = new char[x]; // { dg-error "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.ext/
H A Darrnew2.C4 int *foo = new int[1](42); // { dg-bogus "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dnew5.C4 const int *p = new const int (0);
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Darray4.C5 int* arr = new int[FOO];
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.pt/
H A Dt36.C5 return new ip;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/warn/
H A DWunused-var-21.C8 int *volatile a = new int[1];
15 int *b = new int[1];
22 int *volatile c = new int;
29 int *d = new int;

Completed in 130 milliseconds

1234567891011>>