[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / extern-weak.c
blob5cee4529794654143f9b6aaa5b45a363b1476ea8
1 // RUN: %clang_cc1 -O3 -emit-llvm -o - %s | grep extern_weak
2 // RUN: %clang_cc1 -O3 -emit-llvm -o - %s | llc
4 #if !defined(__linux__) && !defined(__FreeBSD__) && \
5 !defined(__OpenBSD__) && !defined(__CYGWIN__) && !defined(__DragonFly__)
6 void foo(void) __attribute__((weak_import));
7 #else
8 void foo(void) __attribute__((weak));
9 #endif
11 void bar(void) { foo(); }