github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/tests/errno.c (about)

     1  #include "tests.h"
     2  #include <errno.h>
     3  #include <stdio.h>
     4  #include <stdlib.h>
     5  
     6  int main()
     7  {
     8      plan(1);
     9  
    10      if (__errno_location() == NULL) {
    11          fail("not ok");
    12      } else {
    13          pass("ok");
    14      }
    15  
    16      done_testing();
    17  }