1 /* PR middle-end/82063 - issues with arguments enabled by -Wall
3 { dg-require-effective-target size32plus }
4 { dg-options "-O -Walloc-size-larger-than=1MB -ftrack-macro-expansion=0" } */
13 T (__builtin_malloc (n
));
15 n
= 1000 * 1000; /* 1 megabyte (MB) */
16 T (__builtin_malloc (n
));
19 T (__builtin_malloc (n
)); /* { dg-warning "argument 1 value .1000001. exceeds maximum object size 1000000" } */
22 T (__builtin_malloc (n
)); /* { dg-warning "exceeds maximum object size 1000000" } */
25 T (__builtin_malloc (n
)); /* { dg-warning "exceeds maximum object size 1000000" } */