2 /* { dg-options "-O2" } */
4 extern void abort (void);
11 char buf
[sizeof (struct S
) + 32];
12 if (__builtin_object_size (((struct S
*)&buf
[0])->s
, 1) != 32)
14 if (__builtin_object_size (((struct S
*)&buf
[1])->s
, 1) != 31)
16 if (__builtin_object_size (((struct S
*)&buf
[64])->s
, 0) != 0)