1 /* { dg-do compile } */
2 /* { dg-options "-Wstack-usage=512" } */
3 /* { dg-require-effective-target untyped_assembly } */
5 int foo1 (void) /* { dg-bogus "stack usage" } */
12 int foo2 (void) /* { dg-warning "stack usage is \[0-9\]* bytes" } */
19 /* The actual warning depends on whether stack space is allocated dynamically
21 int foo3 (void) /* { dg-warning "stack usage (might be)|(is) \[0-9\]* bytes" } */
23 char arr
[1024] __attribute__((aligned (512)));
25 /* Force dynamic realignment of argument pointer. */
26 __builtin_apply ((void (*)()) foo2
, 0, 0);
30 int foo4 (int n
) /* { dg-warning "stack usage might be unbounded" } */