Add tests for nounwind and noreturn function attributes.
authorReid Spencer <rspencer@reidspencer.com>
Thu, 22 Mar 2007 02:15:17 +0000 (02:15 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 22 Mar 2007 02:15:17 +0000 (02:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35261 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/paramattrs.ll

index 0926f137e3fca7f4603820f3737daf526f912d4e..84116781f9e9db885a2b01681099da44e576dbea 100644 (file)
@@ -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