summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test.c b/test.c
index ef50528..4b86a0b 100644
--- a/test.c
+++ b/test.c
@@ -1,9 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
-int x;
-void entry() {
- puts("Hello, world!");
+extern int errno;
+int main() {
+ errno = 0;
+ fopen("zzz","r");
+ printf("%d\n",errno);
//printf("hello\n");
exit(0);