view gcc/testsuite/gcc.dg/Wframe-larger-than.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 1830386684a0
line wrap: on
line source

/* Test -Wframe-larger-than for warning
   when the frame size is bigger than specified.
   Origin: Seongbae Park <seongbae.park@gmail.com> */

/* { dg-do compile } */
/* { dg-options "-Wframe-larger-than=2048" } */

extern void func(char *);

void foo (void) {
  char array[4096];
  func(array);
} /* { dg-warning "the frame size of .* bytes is larger than 2048 bytes" } */