diff options
| author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-24 05:29:04 +0000 |
|---|---|---|
| committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-24 05:29:04 +0000 |
| commit | 4fd01733e5748ffe4538a25f46606595d5693611 (patch) | |
| tree | ff9e8546c161a49cfc8ea1319638bcd0e60f4291 | |
| parent | 1897624c0119df94fa1d04b7c36e4ca15842abc7 (diff) | |
| download | ppe42-gcc-4fd01733e5748ffe4538a25f46606595d5693611.tar.gz ppe42-gcc-4fd01733e5748ffe4538a25f46606595d5693611.zip | |
2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
* 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
| -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 ac5bf2ec57d..6e96ea4ea8d 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 dddbca1c7a1..298d1714002 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) }; |

