diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-02-24 05:29:04 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-02-23 21:29:04 -0800 |
commit | e62a4cc1b9de4b48849f3201e977602a1f124f8d (patch) | |
tree | ff9e8546c161a49cfc8ea1319638bcd0e60f4291 | |
parent | 7bdf151b41bcde79c05464baf8dc3a1ae51d20b2 (diff) | |
download | gcc-e62a4cc1b9de4b48849f3201e977602a1f124f8d.zip gcc-e62a4cc1b9de4b48849f3201e977602a1f124f8d.tar.gz gcc-e62a4cc1b9de4b48849f3201e977602a1f124f8d.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/init/static-init1.C | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ac5bf2e..6e96ea4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/g++.dg/init/static-init1.C b/gcc/testsuite/g++.dg/init/static-init1.C index dddbca1..298d171 100644 --- a/gcc/testsuite/g++.dg/init/static-init1.C +++ b/gcc/testsuite/g++.dg/init/static-init1.C @@ -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) }; |