WIP - C unit testing stubs

This commit is contained in:
Justin Ethier 2024-01-17 19:55:02 -08:00
parent 3b921e7389
commit 5defc8d8a1
2 changed files with 11 additions and 0 deletions

View file

@ -342,3 +342,7 @@ install-bin : cyclone icyc
$(MKDIR) $(DESTDIR)$(BINDIR)
$(INSTALL) -m0755 cyclone $(DESTDIR)$(BINDIR)/
$(INSTALL) -m0755 icyc $(DESTDIR)$(BINDIR)/
# TODO: is this linking in local lcyclone or the system one????
test-lib: test-lib.c
$(CC) test-lib.c -o test-lib -L . $(LIBS)

7
test-lib.c Normal file
View file

@ -0,0 +1,7 @@
#include <stdio.h>
#include "include/cyclone/types.h"
#include "include/cyclone/runtime.h"
void main(){
printf("TODO %p\n", boolean_f);
}