repo.or.cz
/
CMakeLuaTailorHgBridge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit.
[CMakeLuaTailorHgBridge.git]
/
CMakeLua
/
Tests
/
ConvLibrary
/
bartest.cxx
blob
ab9577304d57dda25fa9a3529f4948af98b5edef
1
extern
"C"
int
bar
();
2
int
foo
();
3
int
car
();
4
5
#include <stdio.h>
6
int
main
()
7
{
8
if
(
foo
() ==
10
)
9
{
10
printf
(
"foo is 10!
\n
"
);
11
}
12
else
13
{
14
printf
(
"foo is not 10 error!
\n
"
);
15
return
-
1
;
16
}
17
if
(
bar
() ==
20
)
18
{
19
printf
(
"bar is 20!
\n
"
);
20
}
21
else
22
{
23
printf
(
"bar is not 20 error!
\n
"
);
24
return
-
1
;
25
}
26
if
(
car
() ==
30
)
27
{
28
printf
(
"car is 30!
\n
"
);
29
}
30
else
31
{
32
printf
(
"car is not 30 error!
\n
"
);
33
return
-
1
;
34
}
35
printf
(
"Test past
\n
"
);
36
return
0
;
37
}