summaryrefslogtreecommitdiffstats
path: root/tests/run-make/staticlib-dylib-linkage/foo.c
blob: 154f9682ef8f1dd678cdb5a3605a11cee1cb92bf (plain)
1
2
3
4
5
6
7
8
9
10
#include <assert.h>

extern void foo();
extern unsigned bar(unsigned a, unsigned b);

int main() {
  foo();
  assert(bar(1, 2) == 3);
  return 0;
}