URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed bad-errors
|
// GROUPS passed bad-errors
|
// bad-error file
|
// bad-error file
|
// Date: Sun, 31 Jul 1994 11:37:43 +1000 (EST)
|
// Date: Sun, 31 Jul 1994 11:37:43 +1000 (EST)
|
// From: Rohan LENARD
|
// From: Rohan LENARD
|
// Subject: g++-2.6.0 gives wrong warning for placement syntax new
|
// Subject: g++-2.6.0 gives wrong warning for placement syntax new
|
// Message-Id: <0iCk1b0000000z0VY0@iassf.easams.com.au>
|
// Message-Id: <0iCk1b0000000z0VY0@iassf.easams.com.au>
|
|
|
|
|
#include
|
#include
|
|
|
void * operator new(size_t, int *);
|
void * operator new(size_t, int *);
|
void * operator new(size_t, void *);
|
void * operator new(size_t, void *);
|
|
|
int *x = 0;
|
int *x = 0;
|
int foo(){
|
int foo(){
|
new (x) int *;
|
new (x) int *;
|
new (&x) int *;
|
new (&x) int *;
|
new (x) int *; // This is identical to line 8 !!!
|
new (x) int *; // This is identical to line 8 !!!
|
return 1;
|
return 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.