PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr66449.c
blobcce26eb74e3f5ec6d2cebd5f221dacf68994db39
1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
4 #if __SIZEOF_POINTER__ != __SIZEOF_LONG__
5 #define long __INTPTR_TYPE__
6 #endif
8 void *fn1(void *p1, void *p2, long p3)
10 long a = (long)p1, b = (long)p2, c = p3;
12 while (c)
14 int d = ((int *)b)[0];
16 c--;
17 ((char *)a)[0] = d;
18 a++;
20 return 0;