diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/pr52549.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/pr52549.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/pr52549.c b/gcc-4.9/gcc/testsuite/gcc.dg/pr52549.c new file mode 100644 index 000000000..90936529d --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/pr52549.c @@ -0,0 +1,18 @@ +/* { 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; +} +#elif __SIZEOF_POINTER__ == __SIZEOF_LONG_LONG__ +__extension__ _mark (long long obj, int i, char *a) +{ + (char *)&(((int *)(obj)) [i]) - a; +} +#endif |