1 /* { dg-do compile { target i?86-*-linux* x86_64-*-linux* } } */
2 /* { dg-options "-O2" } */
4 typedef __SIZE_TYPE__
size_t;
5 extern void abort (void);
6 extern char buf
[0x40000000];
14 for (i
= 0; i
< x
; ++i
)
16 if (__builtin_object_size (p
, 0) != sizeof (buf
) - 8)
26 for (i
= 0; i
< x
; ++i
)
28 if (__builtin_object_size (p
, 1) != sizeof (buf
) - 8)
38 for (i
= 0; i
< x
; ++i
)
40 if (__builtin_object_size (p
, 2) != 0)
50 for (i
= 0; i
< x
; ++i
)
52 if (__builtin_object_size (p
, 3) != 0)
56 /* { dg-final { scan-assembler-not "abort" } } */