Ignoring per-user file.
[oota-llvm.git] / test / CFrontend / extern-weak.c
1 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
2 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
3
4 #if !defined(__linux__) && !defined(__FreeBSD__) && \
5     !defined(__OpenBSD__) && !defined(__CYGWIN__)
6 void foo() __attribute__((weak_import));
7 #else
8 void foo() __attribute__((weak));
9 #endif
10
11 void bar() { foo(); }
12