rust/tests/run-make/staticlib-dylib-linkage/foo.c

11 lines
148 B
C
Raw Normal View History

#include <assert.h>
extern void foo();
extern unsigned bar(unsigned a, unsigned b);
int main() {
foo();
assert(bar(1, 2) == 3);
return 0;
}