Searched refs:new (Results 1 - 25 of 1541) sorted by relevance
1234567891011>>
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/parse/ |
H A D | new2.C | 3 // 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 D | new4.C | 6 new int(; // { dg-error "before" }
|
H A D | new3.C | 4 void *p = new (::X; // { dg-error "declared|type-specifier" }
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/tree-ssa/ |
H A D | pr19476-3.C | 2 /* { dg-options "-O3 -fcheck-new -fdump-tree-optimized" } */ 4 #include <new> 7 return 42 + (0 == new int);
|
H A D | pr19476-4.C | 4 #include <new> 7 return 42 + (0 == new int);
|
H A D | pr19476-5.C | 4 // See pr19476-1.C for a version that includes <new>. 7 return 42 + (0 == new int[50]);
|
H A D | pr19476-1.C | 4 // 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 D | new4.C | 1 int *x = new int [2] ();
|
H A D | new12.C | 5 int *v = new (int [5]);
|
H A D | new22.C | 3 void* operator new (__SIZE_TYPE__) { return; } // { dg-error "with no value" }
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/warn/ |
H A D | new1.C | 2 new int[0]; // { dg-bogus "zero" }
|
H A D | pr31246-2.C | 4 #include <new> 8 return new(ptr) int();
|
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.ext/ |
H A D | arrnew.C | 8 return new int[1] = { 1 }; // { dg-error "lvalue" "err" }
|
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.law/ |
H A D | arm10.C | 9 int(*p)[10]=new int[20][10];
|
H A D | typeck2.C | 6 // 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 D | cvt1.C | 6 // 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 D | 900406_01.C | 8 // 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 D | 900519_06.C | 4 // 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 D | 900519_09.C | 4 // 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 D | lambda-98.C | 7 int **p = new(int(*[2]));
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/ |
H A D | complex1.C | 3 // 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 D | Wattributes1.C | 5 #include <new> 6 __attribute__((visibility("hidden")))void*operator new(std::size_t); // { dg-warning "visibility attribute ignored" }
|
H A D | new1.C | 4 #include <new> 8 static_assert(!noexcept(::new (std::nothrow) int[n]), "");
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/visibility/ |
H A D | new1.C | 6 new int; 11 void *operator new(__SIZE_TYPE__) {
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/tm/ |
H A D | pr47340.C | 4 void* operator new(__SIZE_TYPE__) throw (int); 10 point = new (int);
|
Completed in 239 milliseconds
1234567891011>>