1 /* PR middle-end/82063 - issues with arguments enabled by -Wall
3 { dg-options "-O -Walloc-size-larger-than=1zb -ftrack-macro-expansion=0" } */
5 typedef __SIZE_TYPE__
size_t;
11 /* Verify that an invalid -Walloc-size-larger-than argument is diagnosed
12 and rejected without changing the default setting of PTRDIFF_MAX. */
17 T (__builtin_malloc (n
));
20 T (__builtin_malloc (n
));
23 T (__builtin_malloc (n
)); /* { dg-warning "exceeds maximum object size" } */
26 T (__builtin_malloc (n
)); /* { dg-warning "exceeds maximum object size" } */
29 T (__builtin_malloc (n
)); /* { dg-warning "exceeds maximum object size" } */
32 /* { dg-warning "invalid argument .1zb. to .-Walloc-size-larger-than=." "" { target *-*-* } 0 } */