1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Use weak_import on linux, weak everywhere else. Makes test pass on Linux.

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
This commit is contained in:
Reid Spencer 2006-12-03 16:40:08 +00:00
parent 470e894f5c
commit 84850d5a86

View File

@ -1,7 +1,7 @@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak &&
// RUN: %llvmgcc -O3 -S -o - -emit-llvm | llvm-as | llc
#ifdef __APPLE_CC__
#ifndef __linux__
void foo() __attribute__((weak_import));
#else
void foo() __attribute__((weak));