blob: 6a78a33af65a362dd0069de7cbea778dd627b4ec [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -O3 -emit-llvm -o - %s | grep extern_weak
2// RUN: %clang_cc1 -O3 -emit-llvm -o - %s | llc
3
4#if !defined(__linux__) && !defined(__FreeBSD__) && \
5 !defined(__OpenBSD__) && !defined(__CYGWIN__) && !defined(__DragonFly__)
6void foo() __attribute__((weak_import));
7#else
8void foo() __attribute__((weak));
9#endif
10
11void bar() { foo(); }
12