summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commit8f0bcc6b89cf373d4f48008fc4ac89a83cec8282 (patch)
tree1f1fc13a33b6a62c9042207a8ff3e32497670190 /llvm/test
parent478dcd02396f8aa083c8f1ef03abbe4a1adc8f56 (diff)
downloadbcm5719-llvm-8f0bcc6b89cf373d4f48008fc4ac89a83cec8282.tar.gz
bcm5719-llvm-8f0bcc6b89cf373d4f48008fc4ac89a83cec8282.zip
Add tests for nounwind and noreturn function attributes.
llvm-svn: 35261
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Feature/paramattrs.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Feature/paramattrs.ll b/llvm/test/Feature/paramattrs.ll
index 0926f137e3f..84116781f9e 100644
--- a/llvm/test/Feature/paramattrs.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud