Commit 97150c41 by Mark Mitchell Committed by Mark Mitchell

arraynew.C: Use `std' where necessary.

	* g++.old-deja/g++.abi/arraynew.C: Use `std' where necessary.
	* g++.old-deja/g++.abi/cxa_vec.C: Likewise.
	* g++.old-deja/g++.abi/ptrflags.C: Likewise.
	* g++.old-deja/g++.abi/vmihint.C: Likewise.

From-SVN: r37492
parent c4d3f801
2000-11-15 Mark Mitchell <mark@codesourcery.com>
* g++.old-deja/g++.abi/arraynew.C: Use `std' where necessary.
* g++.old-deja/g++.abi/cxa_vec.C: Likewise.
* g++.old-deja/g++.abi/ptrflags.C: Likewise.
* g++.old-deja/g++.abi/vmihint.C: Likewise.
2000-11-15 Neil Booth <neilb@earthling.net> 2000-11-15 Neil Booth <neilb@earthling.net>
gcc.dg/cpp/_Pragma1.c: Update. gcc.dg/cpp/_Pragma1.c: Update.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
void* p; void* p;
void* operator new[](size_t s) throw (bad_alloc) void* operator new[](size_t s) throw (std::bad_alloc)
{ {
// Record the base of the last array allocated. // Record the base of the last array allocated.
p = malloc (s); p = malloc (s);
......
...@@ -62,7 +62,7 @@ void test0 () ...@@ -62,7 +62,7 @@ void test0 ()
if (!started) if (!started)
{ {
started = true; started = true;
set_terminate (test0); std::set_terminate (test0);
ctor_count = dtor_count = 5; ctor_count = dtor_count = 5;
dtor_repeat = false; dtor_repeat = false;
...@@ -95,7 +95,7 @@ void test1 () ...@@ -95,7 +95,7 @@ void test1 ()
if (!started) if (!started)
{ {
started = true; started = true;
set_terminate (test1); std::set_terminate (test1);
ctor_count = dtor_count = 5; ctor_count = dtor_count = 5;
dtor_repeat = false; dtor_repeat = false;
...@@ -129,7 +129,7 @@ void test2 () ...@@ -129,7 +129,7 @@ void test2 ()
if (!started) if (!started)
{ {
started = true; started = true;
set_terminate (test2); std::set_terminate (test2);
ctor_count = dtor_count = 5; ctor_count = dtor_count = 5;
dtor_repeat = false; dtor_repeat = false;
blocks = 0; blocks = 0;
...@@ -163,7 +163,7 @@ void test3 () ...@@ -163,7 +163,7 @@ void test3 ()
if (!started) if (!started)
{ {
started = true; started = true;
set_terminate (test3); std::set_terminate (test3);
ctor_count = dtor_count = 5; ctor_count = dtor_count = 5;
dtor_repeat = false; dtor_repeat = false;
...@@ -201,7 +201,7 @@ void test4 () ...@@ -201,7 +201,7 @@ void test4 ()
if (!started) if (!started)
{ {
started = true; started = true;
set_terminate (test4); std::set_terminate (test4);
ctor_count = dtor_count = 5; ctor_count = dtor_count = 5;
dtor_repeat = false; dtor_repeat = false;
......
...@@ -12,13 +12,13 @@ struct B; ...@@ -12,13 +12,13 @@ struct B;
using namespace abi; using namespace abi;
int expect (int flags, type_info const &info) int expect (int flags, std::type_info const &info)
{ {
__pbase_type_info const *ptr = abi::__pbase_type_info const *ptr =
dynamic_cast <__pbase_type_info const *> (&info); dynamic_cast <abi::__pbase_type_info const *> (&info);
if (!ptr) if (!ptr)
return 0; return 0;
if (ptr->qualifier_flags != flags) if (ptr->__qualifier_flags != flags)
return 0; return 0;
return 1; return 1;
} }
......
...@@ -30,13 +30,13 @@ struct P2 : B, P1 {int m;}; ...@@ -30,13 +30,13 @@ struct P2 : B, P1 {int m;};
using namespace abi; using namespace abi;
int expect (int flags, type_info const &info) int expect (int flags, std::type_info const &info)
{ {
__vmi_class_type_info const *ptr = abi::__vmi_class_type_info const *ptr =
dynamic_cast <__vmi_class_type_info const *> (&info); dynamic_cast <abi::__vmi_class_type_info const *> (&info);
if (!ptr) if (!ptr)
return 0; return 0;
if (ptr->flags != flags) if (ptr->__flags != flags)
return 0; return 0;
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment