summaryrefslogtreecommitdiffstats
path: root/test1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test1.c')
-rw-r--r--test1.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/test1.c b/test1.c
new file mode 100644
index 0000000..e6f2bac
--- /dev/null
+++ b/test1.c
@@ -0,0 +1,21 @@
+#include "stdio.h"
+
+extern int random ();
+
+int func1 (int a, int b)
+{
+ return a+b;
+}
+
+int main (void)
+{
+ int a, b;
+
+ a = random ();
+ if (a)
+ a = a + func1 (a, b);
+
+ printf ("result=%d\n", a);
+
+ return 0;
+}