new testcase to verify external weak continues to work

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32064 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-12-01 07:14:26 +00:00
parent 772aa15a4d
commit be737bb006

View File

@ -0,0 +1,13 @@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
// TODO: Enable this when darwin gets weak support:
// : %llvmgcc -O3 -S -o - -emit-llvm | llvm-as | llc
#ifdef __APPLE_CC__
void foo() __attribute__((weak_import));
#else
void foo() __attribute__((weak));
#endif
void bar() { foo(); }