diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/burneye2/tmp/exectest | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/burneye2/tmp/exectest')
| -rw-r--r-- | other/burneye2/tmp/exectest/simple.c | 35 | ||||
| -rw-r--r-- | other/burneye2/tmp/exectest/simple.o | bin | 0 -> 1012 bytes |
2 files changed, 35 insertions, 0 deletions
diff --git a/other/burneye2/tmp/exectest/simple.c b/other/burneye2/tmp/exectest/simple.c new file mode 100644 index 0000000..6d8b8a6 --- /dev/null +++ b/other/burneye2/tmp/exectest/simple.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | |||
| 2 | int | ||
| 3 | _start (void) | ||
| 4 | { | ||
| 5 | int a; | ||
| 6 | |||
| 7 | a = 6; | ||
| 8 | a = fac (a); | ||
| 9 | a = fac2 (6); | ||
| 10 | |||
| 11 | return (a); | ||
| 12 | } | ||
| 13 | |||
| 14 | |||
| 15 | int | ||
| 16 | fac (int n) | ||
| 17 | { | ||
| 18 | if (n <= 1) | ||
| 19 | return (1); | ||
| 20 | else | ||
| 21 | return (n * fac (n - 1)); | ||
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | int | ||
| 26 | fac2 (int n) | ||
| 27 | { | ||
| 28 | unsigned int a = n; | ||
| 29 | |||
| 30 | while (n > 1) | ||
| 31 | a *= --n; | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | |||
diff --git a/other/burneye2/tmp/exectest/simple.o b/other/burneye2/tmp/exectest/simple.o new file mode 100644 index 0000000..76a6efa --- /dev/null +++ b/other/burneye2/tmp/exectest/simple.o | |||
| Binary files differ | |||
