This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch testsuite]: g++.dg
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 22 Mar 2013 09:17:40 +0100
- Subject: [patch testsuite]: g++.dg
Hi,
this patch fixes an LLP64 issue in g++.dg's testsuite.
ChangeLog
2013-03-22 Kai Tietz <ktietz@redhat.com>
* g++.dg/torture/20121105-1.C: Adjust for LLP64 targets.
Ok for apply?
Regards,
Kai
Index: gcc/testsuite/g++.dg/torture/20121105-1.C
===================================================================
--- gcc/testsuite/g++.dg/torture/20121105-1.C (Revision 196898)
+++ gcc/testsuite/g++.dg/torture/20121105-1.C (Arbeitskopie)
@@ -2,6 +2,8 @@
// Reported by Remi Vanicat <vanicat@debian.org>
// Reduced testcase by Markus Trippelsdorf <markus@trippelsdorf.de>
+__extension__ typedef __INTPTR_TYPE__ intptr_t;
+
struct A;
struct B
{
@@ -25,7 +27,7 @@ struct D
};
D c(0);
-const long d = (long)&c;
+const intptr_t d = (intptr_t)&c;
B *const e = (B *)&d;
static bool