(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
pr48470.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target naked_functions } */
       3  /* { dg-options "-O0" } */
       4  
       5  extern void g(int *x);
       6  
       7  void __attribute__((naked)) f(void)
       8  {
       9      int x = 0; /* { dg-error "cannot allocate stack for variable" } */
      10      g(&x);
      11  }