2 /* { dg-options "-fsanitize=undefined -fno-sanitize-recover" } */
6 __attribute__((noinline
, noclone
)) void
9 __builtin_memcpy (a
, b
, sizeof (*a
));
12 __attribute__((noinline
, noclone
)) void
15 __builtin_memcpy (b
, a
, sizeof (*a
));
18 __attribute__((noinline
, noclone
)) void
21 __builtin_memcpy (&c
, b
, sizeof (c
));
24 __attribute__((noinline
, noclone
)) void
27 __builtin_memcpy (b
, &c
, sizeof (c
));
41 } __attribute__((packed
));
43 __attribute__((noinline
, noclone
)) int
46 return p
->a
+ p
->b
+ p
->c
+ p
->d
+ p
->e
+ p
->f
+ p
->g
+ p
->h
+ p
->i
;
52 struct S
{ int a
; char b
[sizeof (int) + 1]; } s
;
59 if (c
!= 7 || s
.a
!= 6)
61 struct U
{ long long a
; long double b
; char c
; struct T d
; } u
;
62 __builtin_memset (&u
, 0, sizeof (u
));