Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / ConvLibrary / bartest.cxx
blobab9577304d57dda25fa9a3529f4948af98b5edef
1 extern "C" int bar();
2 int foo();
3 int car();
5 #include <stdio.h>
6 int main()
8 if(foo() == 10)
10 printf("foo is 10!\n");
12 else
14 printf("foo is not 10 error!\n");
15 return -1;
17 if(bar() == 20)
19 printf("bar is 20!\n");
21 else
23 printf("bar is not 20 error!\n");
24 return -1;
26 if(car() == 30)
28 printf("car is 30!\n");
30 else
32 printf("car is not 30 error!\n");
33 return -1;
35 printf("Test past\n");
36 return 0;