Commit e62a4cc1 by H.J. Lu Committed by H.J. Lu

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
parent 7bdf151b
2009-02-23 H.J. Lu <hongjiu.lu@intel.com> 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 PR c++/36411
* g++.dg/template/void14.C: New. * g++.dg/template/void14.C: New.
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
// Make sure we don't think we can initialize a at compile time. // Make sure we don't think we can initialize a at compile time.
char c; char c;
short a[] = { (short)((int)&c + (int)&c) }; short a[] = { (short)((__PTRDIFF_TYPE__)&c + (__PTRDIFF_TYPE__)&c) };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment