blob: 2f57712e39dc9110cabf4cf46edaa9a67eb9fd16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <assert.h>
#include "tests/core/c_linkmodes/adder_shared.h"
#ifndef CGO_EXPORT_H_EXISTS
#error cgo header did not include define
#endif
int main(int argc, char** argv) {
assert(GoAdd(42, 42) == 84);
return 0;
}
|