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:
parent
7bdf151b41
commit
e62a4cc1b9
|
@ -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
|
||||
|
|
|
@ -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) };
|
||||
|
|
Loading…
Reference in New Issue