Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/20080806-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-add-options stack_size } */ /* This used to ICE on s390x due to a reload bug. */ #if defined(STACK_SIZE) && (STACK_SIZE < 65536) #define BYTES 64 #else #define BYTES 65400 #endif int gl2; typedef __SIZE_TYPE__ size_t; extern void *memcpy (void *dest, const void *src, size_t n); void f1 () { int i2; unsigned char bf[BYTES]; for (i2 = 0; i2 < 3; i2++) { unsigned char *p2 = bf; unsigned char *p3 = ((void *) 0); unsigned short ctf2; p2 += sizeof (short); for (ctf2 = 0; ctf2 < 3; ctf2++) { if (ctf2 == 1) { unsigned short of = p2 - bf - 6; unsigned short *ofp = (unsigned short *) &of; memcpy (p3, ofp, sizeof (short)); } if (gl2 == 1) p2 += 3; } } }