aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr78213.c
blob: 04bf0381f760d5d25525137292ecb06e4b50c3c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-fself-test=$srcdir/selftests" } */

/* Verify that -fself-test does not fail on a non empty source.  */

int i;                                                                          void bar();                                                                     void foo()
{
  while (i--)
    bar();
}

/* { dg-regexp {^-fself-test: [0-9]+ pass\(es\) in [.0-9]+ seconds$|.*: note: self-tests are not enabled in this build$} } */