diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-11-16 04:14:37 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-11-16 04:14:37 +0000 |
commit | 97150c41bdd164767efac86be31ba8a25f47da09 (patch) | |
tree | 09bc811ae8a669948711590fc4fd2643ace59c21 | |
parent | c4d3f801a66546624ce2b3f80ecb22776ebb215b (diff) | |
download | gcc-97150c41bdd164767efac86be31ba8a25f47da09.zip gcc-97150c41bdd164767efac86be31ba8a25f47da09.tar.gz gcc-97150c41bdd164767efac86be31ba8a25f47da09.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.abi/arraynew.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C | 10 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.abi/vmihint.C | 8 |
5 files changed, 21 insertions, 14 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1ff1fac..27fcc8b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +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> gcc.dg/cpp/_Pragma1.c: Update. diff --git a/gcc/testsuite/g++.old-deja/g++.abi/arraynew.C b/gcc/testsuite/g++.old-deja/g++.abi/arraynew.C index e62727f..3aa32c8 100644 --- a/gcc/testsuite/g++.old-deja/g++.abi/arraynew.C +++ b/gcc/testsuite/g++.old-deja/g++.abi/arraynew.C @@ -7,7 +7,7 @@ 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. p = malloc (s); diff --git a/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C b/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C index e551db5..c08ce75 100644 --- a/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C +++ b/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C @@ -62,7 +62,7 @@ void test0 () if (!started) { started = true; - set_terminate (test0); + std::set_terminate (test0); ctor_count = dtor_count = 5; dtor_repeat = false; @@ -95,7 +95,7 @@ void test1 () if (!started) { started = true; - set_terminate (test1); + std::set_terminate (test1); ctor_count = dtor_count = 5; dtor_repeat = false; @@ -129,7 +129,7 @@ void test2 () if (!started) { started = true; - set_terminate (test2); + std::set_terminate (test2); ctor_count = dtor_count = 5; dtor_repeat = false; blocks = 0; @@ -163,7 +163,7 @@ void test3 () if (!started) { started = true; - set_terminate (test3); + std::set_terminate (test3); ctor_count = dtor_count = 5; dtor_repeat = false; @@ -201,7 +201,7 @@ void test4 () if (!started) { started = true; - set_terminate (test4); + std::set_terminate (test4); ctor_count = dtor_count = 5; dtor_repeat = false; diff --git a/gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C b/gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C index 57f05e8..9c64556 100644 --- a/gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C +++ b/gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C @@ -12,13 +12,13 @@ struct B; 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 = - dynamic_cast <__pbase_type_info const *> (&info); + abi::__pbase_type_info const *ptr = + dynamic_cast <abi::__pbase_type_info const *> (&info); if (!ptr) return 0; - if (ptr->qualifier_flags != flags) + if (ptr->__qualifier_flags != flags) return 0; return 1; } diff --git a/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C b/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C index 6229474..1160e1f 100644 --- a/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C +++ b/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C @@ -30,13 +30,13 @@ struct P2 : B, P1 {int m;}; 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 = - dynamic_cast <__vmi_class_type_info const *> (&info); + abi::__vmi_class_type_info const *ptr = + dynamic_cast <abi::__vmi_class_type_info const *> (&info); if (!ptr) return 0; - if (ptr->flags != flags) + if (ptr->__flags != flags) return 0; return 1; } |