[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2007-04-25-weak.c

Lauro Ramos Venancio lauro.venancio at gmail.com
Wed Apr 25 07:28:29 PDT 2007



Changes in directory llvm-test/SingleSource/UnitTests:

2007-04-25-weak.c added (r1.1)
---
Log message:

Add a failing weak test.


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

 2007-04-25-weak.c |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm-test/SingleSource/UnitTests/2007-04-25-weak.c
diff -c /dev/null llvm-test/SingleSource/UnitTests/2007-04-25-weak.c:1.1
*** /dev/null	Wed Apr 25 09:28:20 2007
--- llvm-test/SingleSource/UnitTests/2007-04-25-weak.c	Wed Apr 25 09:28:10 2007
***************
*** 0 ****
--- 1,8 ----
+ extern int test_weak () __attribute__ ((weak));
+ 
+ int main(){
+   int (*t)() = test_weak;
+   if (t)
+     return t();
+   else return 250;
+ }






More information about the llvm-commits mailing list