(ADD) Added test.c for testing on github action.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -20,3 +20,4 @@ libcompound.so
|
||||
ccwarn
|
||||
CMakeLists_default.txt
|
||||
genwarn.sh
|
||||
test.sh
|
||||
|
BIN
CompoundTest
Executable file
BIN
CompoundTest
Executable file
Binary file not shown.
@@ -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
21
test.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user