summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr52549.c
blob: 4d0a3e00a5ab9fc5012139e50cd340e272174052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */

#ifdef __SIZE_TYPE__
_mark (__SIZE_TYPE__ obj, int i, char *a)
{
  (char *)&(((long *)(obj)) [i]) - a;
}
#elif __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