Checking for __APPLE_CC__ is useless as this just checks to see if the compiler is llvm-gcc, which we know it is. llvm-svn: 32158
12 lines
252 B
C
12 lines
252 B
C
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak &&
|
|
// RUN: %llvmgcc -O3 -S -o - -emit-llvm | llvm-as | llc
|
|
|
|
#ifndef __linux__
|
|
void foo() __attribute__((weak_import));
|
|
#else
|
|
void foo() __attribute__((weak));
|
|
#endif
|
|
|
|
void bar() { foo(); }
|
|
|