1 /* { dg-do compile } */
2 /* { dg-options "-Wstack-usage=512" } */
4 int foo1 (void) /* { dg-bogus "stack usage" } */
11 int foo2 (void) /* { dg-warning "stack usage is \[0-9\]* bytes" } */
18 int foo3 (void) /* { dg-warning "stack usage might be \[0-9\]* bytes" } */
20 char arr
[1024] __attribute__((aligned (512)));
22 /* Force dynamic realignment of argument pointer. */
23 __builtin_apply ((void (*)()) foo2
, 0, 0);
27 int foo4 (int n
) /* { dg-warning "stack usage might be unbounded" } */