OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wframe-larger-than.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* 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" } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.