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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wframe-larger-than.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* Test -Wframe-larger-than for warning
/* Test -Wframe-larger-than for warning
   when the frame size is bigger than specified.
   when the frame size is bigger than specified.
   Origin: Seongbae Park <seongbae.park@gmail.com> */
   Origin: Seongbae Park <seongbae.park@gmail.com> */
 
 
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-Wframe-larger-than=2048" } */
/* { dg-options "-Wframe-larger-than=2048" } */
 
 
extern void func(char *);
extern void func(char *);
 
 
void foo (void) {
void foo (void) {
  char array[4096];
  char array[4096];
  func(array);
  func(array);
} /* { dg-warning "the frame size of .* bytes is larger than 2048 bytes" } */
} /* { 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.