1 #define bos(O, T) __builtin_object_size(O, T)
6 __INT32_TYPE__ padding
;
10 static char *p
= &s
.arr
[1];
13 int obj_int0(void) { return bos(&s
.i
, 0) == 8; }
14 int obj_arr0(void) { return bos(&s
.arr
[1], 0) == 15; }
16 int ptr_int(struct s
*p
) { return bos(&p
->i
, 0) == -1; }
17 int ptr_arr(struct s
*p
) { return bos(&p
->arr
[1], 0) == -1; }
20 * check-name: builtin-objsize0
21 * check-command: test-linearize -Wno-decl $file
24 * check-output-returns: 1