summaryrefslogtreecommitdiff
path: root/test/Feature/paramattrs.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-22 02:15:17 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-22 02:15:17 +0000
commitc2df07095c21382e304036d1d9310ee88fe2e660 (patch)
treef353073390e052d66d311429d98ab0712b05ec6d /test/Feature/paramattrs.ll
parent66123626ad5497bfe3bfd14fea85468091ca8d3d (diff)
downloadllvm-c2df07095c21382e304036d1d9310ee88fe2e660.tar.gz
llvm-c2df07095c21382e304036d1d9310ee88fe2e660.tar.bz2
llvm-c2df07095c21382e304036d1d9310ee88fe2e660.tar.xz
Add tests for nounwind and noreturn function attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/paramattrs.ll')
-rw-r--r--test/Feature/paramattrs.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Feature/paramattrs.ll b/test/Feature/paramattrs.ll
index 0926f137e3..84116781f9 100644
--- a/test/Feature/paramattrs.ll
+++ b/test/Feature/paramattrs.ll
@@ -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