Skip to content
Snippets Groups Projects
Commit 696141df authored by Petr Rockai's avatar Petr Rockai
Browse files

test: Nothing guarantees that 'errno' is 0 at the start of main().

parent d7f0f52c
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
#include <dios.h> #include <dios.h>
#include <assert.h> #include <assert.h>
int main() { int main()
{
errno = 0;
assert( errno == 0 ); assert( errno == 0 );
errno = 42; errno = 42;
assert( errno == 42 ); assert( errno == 42 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment