From: H.J. Lu Date: Tue, 24 Feb 2009 05:29:04 +0000 (+0000) Subject: static-init1.C: Replace int with __PTRDIFF_TYPE__. X-Git-Tag: releases/gcc-4.4.0~450 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e62a4cc1b9de4b48849f3201e977602a1f124f8d;p=thirdparty%2Fgcc.git static-init1.C: Replace int with __PTRDIFF_TYPE__. 2009-02-23 H.J. Lu * g++.dg/init/static-init1.C: Replace int with __PTRDIFF_TYPE__. From-SVN: r144402 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ac5bf2ec57d0..6e96ea4ea8de 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-02-23 H.J. Lu + + * g++.dg/init/static-init1.C: Replace int with __PTRDIFF_TYPE__. + 2009-02-23 H.J. Lu PR c++/36411 diff --git a/gcc/testsuite/g++.dg/init/static-init1.C b/gcc/testsuite/g++.dg/init/static-init1.C index dddbca1c7a11..298d1714002d 100644 --- a/gcc/testsuite/g++.dg/init/static-init1.C +++ b/gcc/testsuite/g++.dg/init/static-init1.C @@ -2,4 +2,4 @@ // Make sure we don't think we can initialize a at compile time. char c; -short a[] = { (short)((int)&c + (int)&c) }; +short a[] = { (short)((__PTRDIFF_TYPE__)&c + (__PTRDIFF_TYPE__)&c) };