2 /* { dg-options "-O2" } */
4 #include "builtin-object-size-common.h"
12 char buf
[sizeof (struct S
) + 32];
13 if (__builtin_object_size (((struct S
*)&buf
[0])->s
, 1) != 32)
15 if (__builtin_object_size (((struct S
*)&buf
[1])->s
, 1) != 31)
17 if (__builtin_object_size (((struct S
*)&buf
[64])->s
, 0) != 0)