Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr82190.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* PR target/82190 */ /* { dg-do run } */ /* { dg-options "-O2 -fno-optimize-strlen -fweb" } */ char src[64] __attribute__ ((aligned)) = "aaaaaaa"; char dst[64] __attribute__ ((aligned)); int main () { __builtin_memcpy (dst, src, 6); if (__builtin_memcmp (dst, src, 6)) __builtin_abort (); __builtin_memcpy (dst, src, 7); if (__builtin_memcmp (dst, src, 7)) __builtin_abort (); return 0; }