modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/20030203-1.c (about)

     1  void f(int);
     2  int do_layer3(int single)
     3  {
     4    int stereo1;
     5  
     6    if(single >= 0) /* stream is stereo, but force to mono */
     7      stereo1 = 1;
     8    else
     9      stereo1 = 2;
    10    f(single);
    11  
    12    return stereo1;
    13  }
    14  
    15  extern void abort ();
    16  int main()
    17  {
    18    if (do_layer3(-1) != 2)
    19      abort ();
    20    return 0;
    21  }
    22  
    23  void f(int i) {}