(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr89340.c
       1  /* PR c/89340 */
       2  /* { dg-do compile } */
       3  /* { dg-options "" } */
       4  
       5  void bar (void)
       6  {
       7    __attribute__((weak)) void foo () {}	/* { dg-error "weak declaration of 'foo' must be public" } */
       8    foo ();
       9  }