* g++.dg/abi/rtti2.C: New test.
* rtti.c (qualifier_flags): Fix thinko.
From-SVN: r59391
+2002-11-22 Mark Mitchell <mark@codesourcery.com>
+
+ * rtti.c (qualifier_flags): Fix thinko.
+
2002-11-21 Glen Nakamura <glen@imodulo.com>
PR c++/8342
tree type;
{
int flags = 0;
- /* we want the qualifiers on this type, not any array core, it might have */
- int quals = TYPE_QUALS (type);
+ int quals = cp_type_quals (type);
if (quals & TYPE_QUAL_CONST)
flags |= 1;
+2002-11-22 Mark Mitchell <mark@codesourcery.com>
+
+ * g++.dg/abi/rtti2.C: New test.
+
2002-11-21 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/i386-unroll-1.c: New test.
--- /dev/null
+// { dg-do run }
+
+#include <cxxabi.h>
+#include <typeinfo>
+
+int main () {
+ const std::type_info& ti = typeid (const int (*)[3]);
+ const abi::__pointer_type_info& pti
+ = static_cast<const abi::__pointer_type_info&>(ti);
+ if ((pti.__flags & pti.__const_mask) == 0)
+ return 1;
+}