diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2012-05-16 12:46:36 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2012-05-16 12:46:36 +0000 |
commit | 219d42f11a5f65265b8dda0ab4cb354746c3f456 (patch) | |
tree | 3b4b6b75b56a6d157491587f7bebf8acc6a97ef9 /gcc/testsuite/gcc.dg | |
parent | 0b2c4be5fdff70f1babd503c9f6dbabd664c44c7 (diff) | |
download | gcc-219d42f11a5f65265b8dda0ab4cb354746c3f456.zip gcc-219d42f11a5f65265b8dda0ab4cb354746c3f456.tar.gz gcc-219d42f11a5f65265b8dda0ab4cb354746c3f456.tar.bz2 |
re PR testsuite/52641 (Test cases fail for 16-bit int targets)
PR testsuite/52641
* gcc.dg/pr52549.c: Fix test for long != void*
* gcc.c-torture/execute/pr52979-1.x: New file.
* gcc.c-torture/execute/pr52979-2.x: New file.
From-SVN: r187588
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr52549.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr52549.c b/gcc/testsuite/gcc.dg/pr52549.c index 89ec2aa..382f77d 100644 --- a/gcc/testsuite/gcc.dg/pr52549.c +++ b/gcc/testsuite/gcc.dg/pr52549.c @@ -1,6 +1,13 @@ /* { dg-do compile } */ +#if __SIZEOF_POINTER__ == __SIZEOF_LONG__ _mark (long obj, int i, char *a) { (char *)&(((long *)(obj)) [i]) - a; } +#elif __SIZEOF_POINTER__ == __SIZEOF_INT__ +_mark (int obj, int i, char *a) +{ + (char *)&(((int *)(obj)) [i]) - a; +} +#endif |