Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/Wframe-larger-than-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children | 1830386684a0 |
line wrap: on
line source
/* Exercise -Wframe-larger-than= with a byte-size suffix. { dg-do compile } { dg-options "-O -Wframe-larger-than=1KB" } */ extern void f (void*, ...); void frame_size_912 (void) { char a[512]; char b[400]; f (a, b); } void frame_size_1025 (void) { char a[512]; char b[513]; f (a, b); } /* { dg-warning "frame size of \[0-9\]+ bytes is larger than 1024 bytes" } */