view gcc/testsuite/gcc.dg/Wstack-usage.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* PR 90983/manual documents `-Wno-stack-usage` flag, but it is unrecognized
   { dg-do compile }
   { dg-options "-Wall -Wstack-usage=123 -Wno-stack-usage" } */

void f (void*);

void g (int n)
{
  if (n < 1234)
    n = 1234;

  char a [n];
  f (a);
}