2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Feb 2009 05:29:04 +0000 (05:29 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Feb 2009 05:29:04 +0000 (05:29 +0000)
* g++.dg/init/static-init1.C: Replace int with __PTRDIFF_TYPE__.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144402 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ac5bf2e..6e96ea4 100644 (file)
@@ -1,5 +1,9 @@
 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
        * g++.dg/template/void14.C: New.
 
index dddbca1..298d171 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) };