mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
4572ce85b0
llvm-svn: 33296
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(); }
|
|
|