split tests

This commit is contained in:
Yaossg 2024-12-24 23:18:03 +08:00
parent 2b9ed2e2a4
commit d0f8b3e0ad
12 changed files with 137 additions and 121 deletions

9
test/operator/unary.c Normal file
View file

@ -0,0 +1,9 @@
int printf(char* format, ...);
int main() {
int a = 5;
printf("+a=%d\n", +a);
printf("-a=%d\n", -a);
printf("!a=%d\n", !a);
printf("~a=%d\n", ~a);
}

5
test/operator/unary.out Normal file
View file

@ -0,0 +1,5 @@
+a=5
-a=-5
!a=0
~a=-6
0