blob: aa8cc85d8b6bd02175dd90682c98c2a3ca8af201 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* 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;
}
|