github.com/0xKiwi/rules_go@v0.24.3/tests/core/c_linkmodes/add_test_archive.c (about) 1 #include <assert.h> 2 #include "tests/core/c_linkmodes/adder_archive.h" 3 4 #ifndef CGO_EXPORT_H_EXISTS 5 #error cgo header did not include define 6 #endif 7 8 int main(int argc, char** argv) { 9 assert(GoAdd(42, 42) == 84); 10 return 0; 11 }