[llvm-commits] CVS: llvm/test/Feature/paramattrs.ll

Reid Spencer reid at x10sys.com
Wed Mar 21 19:15:37 PDT 2007



Changes in directory llvm/test/Feature:

paramattrs.ll updated: 1.5 -> 1.6
---
Log message:

Add tests for nounwind and noreturn function attributes.


---
Diffs of the changes:  (+2 -2)

 paramattrs.ll |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/test/Feature/paramattrs.ll
diff -u llvm/test/Feature/paramattrs.ll:1.5 llvm/test/Feature/paramattrs.ll:1.6
--- llvm/test/Feature/paramattrs.ll:1.5	Tue Jan 30 10:16:01 2007
+++ llvm/test/Feature/paramattrs.ll	Wed Mar 21 21:15:17 2007
@@ -8,9 +8,9 @@
 declare i16 @"test"(i16 sext %arg) sext 
 declare i8 @"test2" (i16 zext %a2) zext 
 
-implementation
+declare void @exit(i32) noreturn nounwind
 
-define i32 @main(i32 %argc, i8 **%argv) {
+define i32 @main(i32 %argc, i8 **%argv) nounwind inreg {
     %val = trunc i32 %argc to i16
     %res1 = call i16 (i16 sext) sext *@test(i16 %val)
     %two = add i16 %res1, %res1






More information about the llvm-commits mailing list