(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
empty2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-pedantic" } */
       3  double d=0;
       4  
       5  struct A {} a; /* { dg-warning "struct has no members" } */
       6  
       7  void foo(struct A x)
       8  {
       9    d=0;
      10  }
      11  
      12  void bar()
      13  {
      14    if (d) foo(a);
      15  }