mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-08 21:09:49 +00:00
Fix gcc-2.96 build failures.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7085
This commit is contained in:
@@ -10,14 +10,14 @@
|
||||
using std::nothrow_t;
|
||||
|
||||
// A big structure. Its details don't matter.
|
||||
struct s {
|
||||
int array[1000];
|
||||
};
|
||||
typedef struct {
|
||||
int array[1000];
|
||||
} s;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
struct s* p1 = new struct s;
|
||||
struct s* p2 = new (std::nothrow) struct s;
|
||||
s* p1 = new s;
|
||||
s* p2 = new (std::nothrow) s;
|
||||
char* c1 = new char[2000];
|
||||
char* c2 = new (std::nothrow) char[2000];
|
||||
delete p1;
|
||||
|
||||
Reference in New Issue
Block a user