When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / FrontendC / extern-weak.c
blob73b59cc48c4056e41551c494d1eded873a31923e
1 // RUN: %llvmgcc -O3 -S -o - %s | grep extern_weak
2 // RUN: %llvmgcc -O3 -S -o - %s | llc
4 #if !defined(__linux__) && !defined(__FreeBSD__) && \
5 !defined(__OpenBSD__) && !defined(__CYGWIN__) && !defined(__DragonFly__)
6 void foo() __attribute__((weak_import));
7 #else
8 void foo() __attribute__((weak));
9 #endif
11 void bar() { foo(); }