aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/UnitTests/2007-04-25-weak.c
blob: e53583670d7aed10f20de8861ec4c36bc4c090cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
extern int test_weak () __attribute__ ((weak_import));
#else
extern int test_weak () __attribute__ ((weak));
#endif

int main(){
  int (*t)() = test_weak;
  if (t) {
    t();
    return 1;
  }
  return 0;
}