(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr67784-3.c
       1  /* PR c/67784 */
       2  /* { dg-do compile } */
       3  /* { dg-options "" } */
       4  
       5  typedef int T;
       6  
       7  void
       8  fn1 (void)
       9  {
      10    if (sizeof (enum { T }) == 0)
      11      ;
      12    T x;
      13  }
      14  
      15  void
      16  fn2 (void)
      17  {
      18    int i = 0;
      19    if (sizeof (enum { T }) == 0)
      20      i++;
      21    T x;
      22  }
      23  
      24  void
      25  fn3 (void)
      26  {
      27    if (sizeof (enum { T }) == 0)
      28      {
      29      }
      30    T x;
      31  }
      32  
      33  void
      34  fn4 (void)
      35  {
      36    if (sizeof (enum { T }) == 0)
      37  L:
      38      ;
      39    T x;
      40  }
      41  
      42  void
      43  fn5 (void)
      44  {
      45    if (sizeof (enum { T }) == 0)
      46      ;
      47    else
      48      ;
      49    T x;
      50  }