summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pointer-arith-10.c
blob: 220891e20972d45a719b984ee72e14a3bad91a5b (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-fdump-tree-original" } */

char *foo(char *p, __SIZE_TYPE__ i)
{
  return (char *)i + (__SIZE_TYPE__)p;
}

/* { dg-final { scan-tree-dump "p +" "original" } } */
/* { dg-final { cleanup-tree-dump "original" } } */