aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/many_params.sy
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.001@gmail.com>2026-09-15 08:16:43 +0800
committerRichard Qin <richard.qin.001@gmail.com>2026-09-15 08:16:43 +0800
commit4022e5c95210631e4aceb08eaf9d9071aa5aefc4 (patch)
treea5922559836e45fb3459a3d070367912e1035b1a /tests/functional/many_params.sy
downloadrcc-master.tar.gz
rcc-master.tar.xz
Set up a git repoHEADmaster
Diffstat (limited to 'tests/functional/many_params.sy')
-rw-r--r--tests/functional/many_params.sy10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/functional/many_params.sy b/tests/functional/many_params.sy
new file mode 100644
index 0000000..4eac943
--- /dev/null
+++ b/tests/functional/many_params.sy
@@ -0,0 +1,10 @@
+int func8(int a, int b, int c, int d, int e, int f, int g, int h){
+ int arr[1024] = {};
+ return a + b + c + d + e * f + g + h + arr[0];
+}
+int func4(int a, int b, int c, int d){
+ return a + b + c + d;
+}
+int main(){
+ return func8(1, 2, 3, 4, 5, 6, 7, 8) + func4(4, 3, 2, 1);
+} \ No newline at end of file