scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

0034-errno.c (238B)


      1 #include <assert.h>
      2 #include <errno.h>
      3 #include <stdio.h>
      4 
      5 /*
      6 output:
      7 testing
      8 done
      9 end:
     10 */
     11 
     12 int
     13 main()
     14 {
     15 	puts("testing");
     16 	assert(errno == 0);
     17 	assert(ERANGE != EDOM);
     18 	assert(ERANGE > 0);
     19 	assert(EDOM > 0);
     20 	puts("done");
     21 
     22 	return 0;
     23 }