diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-03 16:40:08 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-03 16:40:08 +0000 |
commit | e558c682510156b4f87c278354166d8acc7bc49c (patch) | |
tree | 1ff70d4c082ad4e0f29e8af06c5ff4e957dd4335 /test/CFrontend/extern-weak.c | |
parent | c1126ac7cdcb896bd46c06ffcb51e0c2037bde09 (diff) | |
download | external_llvm-e558c682510156b4f87c278354166d8acc7bc49c.zip external_llvm-e558c682510156b4f87c278354166d8acc7bc49c.tar.gz external_llvm-e558c682510156b4f87c278354166d8acc7bc49c.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend/extern-weak.c')
-rw-r--r-- | test/CFrontend/extern-weak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CFrontend/extern-weak.c b/test/CFrontend/extern-weak.c index a36d16c..ce9d772 100644 --- a/test/CFrontend/extern-weak.c +++ b/test/CFrontend/extern-weak.c @@ -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)); |