From 72af0dedf9e18911da65b9a5c4906689e868d9fc Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Mon, 8 Jun 2026 17:10:31 +0800 Subject: [legacy] Add functional and performance test suites --- rcc-legacy/tests/runtime/sylib.c | 83 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 rcc-legacy/tests/runtime/sylib.c (limited to 'rcc-legacy/tests/runtime/sylib.c') diff --git a/rcc-legacy/tests/runtime/sylib.c b/rcc-legacy/tests/runtime/sylib.c new file mode 100644 index 0000000..dc3d92c --- /dev/null +++ b/rcc-legacy/tests/runtime/sylib.c @@ -0,0 +1,83 @@ +#include +#include +#include +#include"sylib.h" +/* Input & output functions */ +int getint(){int t; scanf("%d",&t); return t; } +int getch(){char c; scanf("%c",&c); return (int)c; } +float getfloat(){ + float n; + scanf("%a", &n); + return n; +} + +int getarray(int a[]){ + int n; + scanf("%d",&n); + for(int i=0;i