2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / stack-layout-2.c
blob9ed545d727a5c33ac5f741719b1dfab118f8c39d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-rtl-expand" } */
3 void bar( char *);
4 int foo()
6 int i=0;
8 char a[8000];
9 bar(a);
10 i += a[0];
13 char a[8192];
14 char b[32];
15 bar(a);
16 i += a[0];
17 bar(b);
18 i += a[0];
20 return i;
22 /* { dg-final { scan-rtl-dump "size 8192" "expand" } } */
23 /* { dg-final { scan-rtl-dump "size 32" "expand" } } */
24 /* { dg-final { cleanup-rtl-dump "expand" } } */