Commit 05abed76 by Mark Mitchell Committed by Mark Mitchell

rtti2.C: New test.

	* g++.dg/abi/rtti2.C: New test.

	* rtti.c (qualifier_flags): Fix thinko.

From-SVN: r59391
parent dd06be9e
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
......
......@@ -685,8 +685,7 @@ qualifier_flags (type)
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.
......
// { 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;
}
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