mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
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:
parent
772aa15a4d
commit
be737bb006
13
test/CFrontend/extern-weak.c
Normal file
13
test/CFrontend/extern-weak.c
Normal 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(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user