☰
Debian Codegraph
@
1.12.1-2
1.12.1-1
1.12.0-3
1.12.0-2
1.11.1-3
1.11.1-2
/
/
test cases
/
rust
/
15 polyglot sharedlib
/
addertest.c
☽
☼
test cases/rust/15 polyglot sharedlib/addertest.c
code
plain
raw
Apache-2.0
2012-2021 The Meson development team
debian/copyright
1
#include<stdlib.h>
2
#include<adder.h>
3
4
int main(int argc, char **argv) {
5
adder *a = adder_create(3);
6
int result = adder_add(a, 4);
7
if(result != 7) {
8
return 1;
9
}
10
adder_destroy(a);
11
return 0;
12
}