Sign in
qemu
/
meson
/
bcbf0685492c61fbc9acac3e7b808a5036dd2439
/
.
/
test cases
/
rust
/
15 polyglot sharedlib
/
addertest.c
blob: 87e45b64f355eb700e7ec154843609520787dad0 [
file
] [
log
] [
blame
]
#include
<stdlib.h>
#include
<adder.h>
int
main
(
int
argc
,
char
**
argv
)
{
adder
*
a
=
adder_create
(
3
);
int
result
=
adder_add
(
a
,
4
);
if
(
result
!=
7
)
{
return
1
;
}
adder_destroy
(
a
);
return
0
;
}