(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
modref-3.c
       1  /* { dg-options "-O2 -fdump-ipa-modref"  } */
       2  /* { dg-do link } */
       3  int *ptr;
       4  void linker_error ();
       5  int
       6  main ()
       7  {
       8    int a;
       9    __attribute__((noinline)) int test2 ()
      10    {
      11      ptr = 0;
      12      return a;
      13    }
      14    a = 1;
      15    test2 ();
      16    if (a != 1)
      17      linker_error ();
      18    return 0;
      19  }
      20  /* { dg-final { scan-ipa-dump "Static chain flags: no_direct_clobber no_indirect_clobber no_direct_escape no_indirect_escape not_returned_directly no_indirect_read" "modref" } } */