aboutsummaryrefslogtreecommitdiffstats
path: root/test/aarch64/c/biggest_of_3_int.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/aarch64/c/biggest_of_3_int.c')
-rw-r--r--test/aarch64/c/biggest_of_3_int.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/aarch64/c/biggest_of_3_int.c b/test/aarch64/c/biggest_of_3_int.c
new file mode 100644
index 00000000..346908fc
--- /dev/null
+++ b/test/aarch64/c/biggest_of_3_int.c
@@ -0,0 +1,10 @@
+int main(int a, int b, int c) {
+ if ((a > b) && (a > c)) {
+ return a;
+ } else if (b > c) {
+ return b;
+ } else {
+ return c;
+ }
+ return 0;
+}