Fix gcc-2.96 build failures.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7085
This commit is contained in:
Julian Seward
2007-11-03 11:16:31 +00:00
parent d8769612a2
commit 3432ccbf8b
3 changed files with 15 additions and 15 deletions

View File

@@ -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;