(ADD) Added test.c for testing on github action.

This commit is contained in:
William
2024-06-24 21:59:46 +08:00
parent 73e766eef7
commit 871bab317b
4 changed files with 24 additions and 0 deletions

1
.gitignore vendored
View File

@@ -20,3 +20,4 @@ libcompound.so
ccwarn
CMakeLists_default.txt
genwarn.sh
test.sh

BIN
CompoundTest Executable file

Binary file not shown.

View File

@@ -1,6 +1,8 @@
#ifndef COMPOUND_UTILS_H
# define COMPOUND_UTILS_H
# include <math.h>
# include <string.h>
# include <time.h>
# include <Compound/common.h>

21
test.c Normal file
View File

@@ -0,0 +1,21 @@
#include <Compound/status.h>
#include <Compound/catlog.h>
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;
}