(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
Waddress-7.c
       1  /* PR c/106947 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Waddress" } */
       4  
       5  #ifndef __cplusplus
       6  # define bool _Bool
       7  #endif
       8  
       9  #pragma GCC diagnostic ignored "-Waddress"
      10  int s; /* { dg-bogus "declared" } */
      11  bool e = &s;
      12  int
      13  main ()
      14  {
      15    int error = 0;
      16    {
      17      bool e1 = &s;
      18      if (!e1)
      19        error = 1;
      20    }
      21    return error;
      22  }