diff --git a/.gitignore b/.gitignore index 7b8efe2..50f0015 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ libcompound.so ccwarn CMakeLists_default.txt genwarn.sh +test.sh diff --git a/CompoundTest b/CompoundTest new file mode 100755 index 0000000..6e020d4 Binary files /dev/null and b/CompoundTest differ diff --git a/Utils/include/utils.h b/Utils/include/utils.h index bb8df74..0acc873 100644 --- a/Utils/include/utils.h +++ b/Utils/include/utils.h @@ -1,6 +1,8 @@ #ifndef COMPOUND_UTILS_H # define COMPOUND_UTILS_H +# include +# include # include # include diff --git a/test.c b/test.c new file mode 100644 index 0000000..2dd5968 --- /dev/null +++ b/test.c @@ -0,0 +1,21 @@ +#include +#include + +Status Main(void) +{ + cat("Hello, Compound!"); + + cat("\n"); + + cat("The Status literalisation and printing of \"" + nameof(MaximumLiteralisationLengthExceeded)"\":"); + + PrintStatusDump(apply(MaximumLiteralisationLengthExceeded)); + + return apply(NormalStatus); +} + +int main(void) +{ + return Main().value; +}