(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr78213.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-fself-test=$srcdir/selftests" } */
       3  
       4  /* Verify that -fself-test does not fail on a non empty source.  */
       5  
       6  int i;                                                                          void bar();                                                                     void foo()
       7  {
       8    while (i--)
       9      bar();
      10  }
      11  
      12  /* { dg-regexp {^-fself-test: [0-9]+ pass\(es\) in [.0-9]+ seconds$|.*: note: self-tests are not enabled in this build$} } */