examples/tests

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-08-23 13:50:26 +02:00
padre 953c3ad48d
commit 36bee15ae6
Se han modificado 89 ficheros con 1286 adiciones y 0 borrados

16
examples/tests/format_test.c Archivo normal
Ver fichero

@@ -0,0 +1,16 @@
// Simple test without stdio.h to verify formatting didn't break functionality
int main() {
// Arrays (our main fix!)
int arr[3];
arr[0] = 10;
arr[1] = 20; // The bug we fixed
arr[2] = 30;
// Pointers
int val = 42;
int* ptr = &val;
*ptr = 99;
// Return the sum to verify functionality
return arr[1] + val; // Should be 20 + 99 = 119
}