[llvm-commits] CVS: llvm/test/Regression/CFrontend/extern-weak.c

Chris Lattner sabre at nondot.org
Thu Nov 30 23:14:40 PST 2006



Changes in directory llvm/test/Regression/CFrontend:

extern-weak.c added (r1.1)
---
Log message:

new testcase to verify external weak continues to work


---
Diffs of the changes:  (+13 -0)

 extern-weak.c |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/Regression/CFrontend/extern-weak.c
diff -c /dev/null llvm/test/Regression/CFrontend/extern-weak.c:1.1
*** /dev/null	Fri Dec  1 01:14:36 2006
--- llvm/test/Regression/CFrontend/extern-weak.c	Fri Dec  1 01:14:26 2006
***************
*** 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(); }
+ 






More information about the llvm-commits mailing list