Searched refs:new (Results 1 - 25 of 1541) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/g++.dg/parse/
H A Dnew2.C3 // PR c++/14181: Cryptic error message for ill-formed new expressions
7 (void)new (char*)[10]; // { dg-error "parenthesized|parentheses" }
8 (void)new char*[10];
H A Dnew4.C6 new int(; // { dg-error "before" }
H A Dnew3.C4 void *p = new (::X; // { dg-error "declared|type-specifier" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/tree-ssa/
H A Dpr19476-3.C2 /* { dg-options "-O3 -fcheck-new -fdump-tree-optimized" } */
4 #include <new>
7 return 42 + (0 == new int);
H A Dpr19476-4.C4 #include <new>
7 return 42 + (0 == new int);
H A Dpr19476-5.C4 // See pr19476-1.C for a version that includes <new>.
7 return 42 + (0 == new int[50]);
H A Dpr19476-1.C4 // See pr19476-5.C for a version without including <new>.
5 #include <new>
8 return 33 + (0 == new(std::nothrow) int);
11 return 42 + (0 == new int[50]);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/init/
H A Dnew4.C1 int *x = new int [2] ();
H A Dnew12.C5 int *v = new (int [5]);
H A Dnew22.C3 void* operator new (__SIZE_TYPE__) { return; } // { dg-error "with no value" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/warn/
H A Dnew1.C2 new int[0]; // { dg-bogus "zero" }
H A Dpr31246-2.C4 #include <new>
8 return new(ptr) int();
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.ext/
H A Darrnew.C8 return new int[1] = { 1 }; // { dg-error "lvalue" "err" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.law/
H A Darm10.C9 int(*p)[10]=new int[20][10];
H A Dtypeck2.C6 // Subject: 2.4.3: Type of new <typedef'ed array>
12 int * p = new int[10];
13 int * q = new arr; /* g++ complains, but shouldn't */
14 int (* r)[10] = new arr; /* g++ doesn't complain, but should */// { dg-error "" }
H A Dcvt1.C6 // Subject: g++ mixes up array dimensions with new
11 int (*a)[5] = new int[6][5];
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.bugs/
H A D900406_01.C8 // keywords: segfault, operator new, array types, array bounds
12 new int[]; // { dg-error "" } causes segfault
17 new int (*)[]; // { dg-error "" } no size specified
H A D900519_06.C4 // g++ allows the type given in an invocation of operator new to be a
8 // from such an invocation (of operator new) is illegal, and thus (it seems)
9 // the entire call to new should be treated as being illegal.
15 new int&; // { dg-error "" } missed
16 new int_ref; // { dg-error "" } missed
17 new int&[n]; // { dg-error "" } missed
18 new int_ref[n]; // { dg-error "" } missed
19 new int&[3]; // { dg-error "" } missed
20 new int_ref[3]; // { dg-error "" } missed
H A D900519_09.C4 // g++ allows the allocation of const objects via operator new even when
5 // these uses of operator new do not include initializations.
11 // after the invocation of new, these cases should all be illegal.
13 // keywords: operator new, initialization, const qualifier
24 new const int; // { dg-error "" }
25 new const_int; // { dg-error "" }
26 new const struct_0; // { dg-error "" }
27 new const_struct_0; // { dg-error "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/lambda/
H A Dlambda-98.C7 int **p = new(int(*[2]));
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/
H A Dcomplex1.C3 // Testing if we can do a new of a complex type
6 void* q = new __complex__ int ();
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A DWattributes1.C5 #include <new>
6 __attribute__((visibility("hidden")))void*operator new(std::size_t); // { dg-warning "visibility attribute ignored" }
H A Dnew1.C4 #include <new>
8 static_assert(!noexcept(::new (std::nothrow) int[n]), "");
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/visibility/
H A Dnew1.C6 new int;
11 void *operator new(__SIZE_TYPE__) {
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/tm/
H A Dpr47340.C4 void* operator new(__SIZE_TYPE__) throw (int);
10 point = new (int);

Completed in 239 milliseconds

1234567891011>>