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

1234567891011>>

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/init/
H A Dnew4.C1 int *x = new int [2] ();
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.ext/
H A Darrnew.C6 return new int[1] = { 1 }; // ERROR - removed
H A Darrnew2.C4 int *foo = new int[1](0); // gets bogus error -
/openbsd-current/gnu/usr.bin/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 */// ERROR -
H A Dcvt1.C6 // Subject: g++ mixes up array dimensions with new
11 int (*a)[5] = new int[6][5];
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.
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.bugs/
H A D900406_01.C7 // keywords: segfault, operator new, array types, array bounds
11 new int[]; // ERROR - causes segfault
16 new int (*)[]; // ERROR - no size specified
H A D900519_06.C3 // g++ allows the type given in an invocation of operator new to be a
7 // from such an invocation (of operator new) is illegal, and thus (it seems)
8 // the entire call to new should be treated as being illegal.
14 new int&; // ERROR - missed
15 new int_ref; // ERROR - missed
16 new int&[n]; // ERROR - missed
17 new int_ref[n]; // ERROR - missed
18 new int&[3]; // ERROR - missed
19 new int_ref[3]; // ERROR - missed
H A D900519_09.C3 // g++ allows the allocation of const objects via operator new even when
4 // these uses of operator new do not include initializations.
10 // after the invocation of new, these cases should all be illegal.
12 // keywords: operator new, initialization, const qualifier
23 new const int; // ERROR -
24 new const_int; // ERROR -
25 new const struct_0; // ERROR -
26 new const_struct_0; // ERROR -
H A D900208_03.C7 // allocate a function using new.
9 // keywords: operator new, function types
15 new func_type; // ERROR - missed by both cfront 2.0 and g++ 1.36.1
H A D900211_03.C7 // keywords: segfault, operator new, arrays, undeclared, array bound
11 char* new_base = new char[x]; // ERROR -
/openbsd-current/gnu/usr.bin/perl/cpan/version/t/
H A D10_lyon.t10 ok('version'->new(1.0203) == 'version'->new('1.0203'));
11 ok('version'->new(1.02_03) == 'version'->new('1.02_03'));
12 ok('version'->new(v1.2.3) == 'version'->new('v1.2.3'));
14 ok('version'->new(v1.2.3_0) == 'version'->new('v1.2.3_0'));
17 cmp_ok('version'->new(1.0203), '==', 'version'->new('1.020
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dnew5.C3 const int *p = new const int (0);
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Darray4.C5 int* arr = new int[FOO];
H A Dnew2.C3 void *operator new(size_t, unsigned int);
11 void f(X *x = new X); // ERROR -
13 void f(X *x = new X(4)); // ERROR -
15 void f(X *x = new X[4]); // ERROR -
17 void f(X *x = new (3) X(6)); // ERROR -
19 void f(X *x = new (2) X[10]); // ERROR -
21 void f(X *x = new X[10][5]); // ERROR -
H A Ddelete5.C11 void *operator new(size_t)
15 void *operator new[](size_t)
26 void *operator new(size_t) throw()
30 void *operator new[](size_t) throw()
38 Y *yp = new Y;
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/
H A Dt36.C5 return new ip;
/openbsd-current/lib/libc/arch/m88k/gen/
H A Dfpsetmask.c16 fp_except new; local
20 new = old;
21 new &= ~0x1f; /* clear bottom 5 bits and */
22 new |= (mask & 0x1f); /* set them to mask */
24 __asm__ volatile("fstcr %0, %%fcr63" : : "r" (new));
H A Dfpsetround.c16 fp_rnd new; local
20 new = old;
21 new &= ~(0x03 << 14); /* clear old value */
22 new |= ((rnd_dir & 0x03) << 14);/* and set new one */
24 __asm__ volatile("fstcr %0, %%fcr63" : : "r" (new));
H A Dfpsetsticky.c16 fp_except new; local
20 new = old;
21 new &= ~(0x1f);
22 new |= (sticky & 0x1f);
24 __asm__ volatile("fstcr %0, %%fcr62" : : "r" (new));

Completed in 116 milliseconds

1234567891011>>