]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
static-init1.C: Replace int with __PTRDIFF_TYPE__.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 24 Feb 2009 05:29:04 +0000 (05:29 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 24 Feb 2009 05:29:04 +0000 (21:29 -0800)
2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

* g++.dg/init/static-init1.C: Replace int with __PTRDIFF_TYPE__.

From-SVN: r144402

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/static-init1.C

index ac5bf2ec57d07ff94d8a12a138f415ec6e5d88c7..6e96ea4ea8dea448ff1ed0b73778e4f40fcc4ec6 100644 (file)
@@ -1,3 +1,7 @@
+2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * g++.dg/init/static-init1.C: Replace int with __PTRDIFF_TYPE__.
+
 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR c++/36411
index dddbca1c7a11368e7d3f6e9ee4ab8c694832d68e..298d1714002d1bbd4b27d60653b290495eed8e55 100644 (file)
@@ -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) };