Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/Wframe-larger-than.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 /* Test -Wframe-larger-than for warning |
2 when the frame size is bigger than specified. | |
3 Origin: Seongbae Park <seongbae.park@gmail.com> */ | |
4 | |
5 /* { dg-do compile } */ | |
6 /* { dg-options "-Wframe-larger-than=2048" } */ | |
7 | |
8 extern void func(char *); | |
9 | |
10 void foo (void) { | |
11 char array[4096]; | |
12 func(array); | |
13 } /* { dg-warning "the frame size of .* bytes is larger than 2048 bytes" } */ |