summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja
diff options
context:
space:
mode:
authoroldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-14 21:36:20 +0000
committeroldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-14 21:36:20 +0000
commit049d65c8e05325ef9e9abaec87a495b2d46c72c0 (patch)
tree705346a28d62a633c3d46d47bac4a790d5c8f560 /gcc/testsuite/g++.old-deja
parent3578dcd843cab3e2a58dc6bc13e96f048eedc08a (diff)
downloadppe42-gcc-049d65c8e05325ef9e9abaec87a495b2d46c72c0.tar.gz
ppe42-gcc-049d65c8e05325ef9e9abaec87a495b2d46c72c0.zip
2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
Further conform g++'s __vmi_class_type_info to the C++ ABI specification. * gcc/cp/rtti.c (dfs_class_hint_mark): Do not set hints not specified by the specification. (class_hint_flags): Likewise. * gcc/testsuite/g++.old-deja/g++.abi/vmihint.C (main): Revise expected flags per the specification. * libstdc++-v3/libsupc++/cxxabi.h (__vmi_class_type_info::__flags_masks): Remove enumerations not required by the specification. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.abi/vmihint.C16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C b/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C
index 1160e1fe178..b4cdf6720cc 100644
--- a/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C
+++ b/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C
@@ -1,5 +1,5 @@
// Test rtti hint flags
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 3 Apr 2000 <nathan@nathan@codesourcery.com>
#include <typeinfo>
@@ -43,20 +43,20 @@ int expect (int flags, std::type_info const &info)
int main ()
{
- if (! expect (0 | 8, typeid (C1)))
+ if (! expect (0, typeid (C1)))
return 1;
- if (! expect (2 | 8, typeid (D1)))
+ if (! expect (2, typeid (D1)))
return 2;
- if (! expect (1 | 8, typeid (E1)))
+ if (! expect (1, typeid (E1)))
return 3;
- if (! expect (1 | 8, typeid (E2)))
+ if (! expect (1, typeid (E2)))
return 4;
- if (! expect (3 | 8, typeid (F1)))
+ if (! expect (3, typeid (F1)))
return 5;
- if (!expect (4, typeid (P1)))
+ if (!expect (0, typeid (P1)))
return 6;
- if (!expect (12, typeid (P2)))
+ if (!expect (0, typeid (P2)))
return 7;
return 0;
OpenPOWER on IntegriCloud