diff options
Diffstat (limited to 'Tests/ConvLibrary/bartest.cxx')
-rw-r--r-- | Tests/ConvLibrary/bartest.cxx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Tests/ConvLibrary/bartest.cxx b/Tests/ConvLibrary/bartest.cxx new file mode 100644 index 0000000..aa3afcb --- /dev/null +++ b/Tests/ConvLibrary/bartest.cxx @@ -0,0 +1,37 @@ +extern "C" int bar(); +int foo(); +int car(); + +#include <stdio.h> +int main() +{ + if(foo() == 10) + { + printf("foo is 10!\n"); + } + else + { + printf("foo is not 10 error!\n"); + return -1; + } + if(bar() == 20) + { + printf("bar is 20!\n"); + } + else + { + printf("bar is not 20 error!\n"); + return -1; + } + if(car() == 30) + { + printf("bar is 30!\n"); + } + else + { + printf("bar is not 30 error!\n"); + return -1; + } + printf("Test past\n"); + return 0; +} |