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

1234567891011>>

/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/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" }
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/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];
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/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" }
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/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();
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/g++.old-deja/g++.ext/
H A Darrnew.C6 return new int[1] = { 1 }; // { dg-error "lvalue" "err" }
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/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];
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/g++.dg/init/
H A Dnew4.C1 int *x = new int [2] ();
H A Dnew12.C5 int *v = new (int [5]);
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/g++.old-deja/g++.ext/
H A Darrnew.C6 return new int[1] = { 1 }; // { dg-error "" } removed
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/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 "" }
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/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 "" }
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/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
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/g++.dg/cpp0x/lambda/
H A Dlambda-98.C7 int **p = new(int(*[2]));
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/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 ();
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/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 ();

Completed in 142 milliseconds

1234567891011>>