diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-16 21:12:17 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-16 21:12:17 (GMT) |
commit | ca0230a33eea074a7beee74dd1ecc50134068359 (patch) | |
tree | f7daeb6c8c5d353f16c011976b841e116706336b /Tests/ConvLibrary/bartest.cxx | |
parent | 4d325a45977a00db6d0a8872d751b6cb41071b41 (diff) | |
download | CMake-ca0230a33eea074a7beee74dd1ecc50134068359.zip CMake-ca0230a33eea074a7beee74dd1ecc50134068359.tar.gz CMake-ca0230a33eea074a7beee74dd1ecc50134068359.tar.bz2 |
ENH: check in initial conv library stuff
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; +} |