static-init1.C: Replace int with __PTRDIFF_TYPE__.

2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

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

From-SVN: r144402
This commit is contained in:
H.J. Lu 2009-02-24 05:29:04 +00:00 committed by H.J. Lu
parent 7bdf151b41
commit e62a4cc1b9
2 changed files with 5 additions and 1 deletions

View 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

View 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) };