test scripts

This commit is contained in:
2023-03-18 18:03:05 +01:00
parent b7071379b9
commit 78509ff2cb
4 changed files with 28 additions and 3 deletions

15
tests/test2/Makefile Normal file
View File

@ -0,0 +1,15 @@
test: test.o
gcc -o $@ $^
test.o: test.c
gcc -c -o $@ $(CFLAGS) $^
.PHONY: run
run: test
./test
.PHONY: clean
clean:
rm -f *.o test

10
tests/test2/test.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdint.h>
int main() {
uint32_t i = -10;
int32_t j = i;
printf("%lu %d\n", i, j);
}