(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
pr103227-1.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-optimized-slim"  } */
       3  
       4  struct S
       5  {
       6    int a, b, c;
       7  };
       8  
       9  int ellide (int c);
      10  
      11  static void __attribute__ ((noinline))
      12  foo (struct S *p)
      13  {
      14    int c = p->c;
      15    if (c != 21)
      16      ellide (c);
      17  }
      18  
      19  void
      20  entry (void)
      21  {
      22    struct S s;
      23    s.a = 1;
      24    s.b = 64;
      25    s.c = 21;
      26    foo (&s);
      27  }
      28  
      29  /* { dg-final { scan-tree-dump-not "ellide" "optimized" } } */