Skip to content

Commit

Permalink
Add some uncovered attribute tests
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186538 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
tobiasgrosser committed Jul 17, 2013
1 parent 54bf58a commit a71443a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/Bitcode/attributes.ll
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,34 @@ define void @f30() "cpu"="cortex-a8"
ret void;
}

define i8 @f31(i8 returned %A)
; CHECK: define i8 @f31(i8 returned %A)
{
ret i8 %A;
}

define void @f32() sspstrong
; CHECK: define void @f32() #21
{
ret void;
}

define void @f33() minsize
; CHECK: define void @f33() #22
{
ret void;
}

declare void @nobuiltin()

define void @f34()
; CHECK: define void @f34()
{
call void @nobuiltin() nobuiltin
; CHECK: call void @nobuiltin() #23
ret void;
}

; CHECK: attributes #0 = { noreturn }
; CHECK: attributes #1 = { nounwind }
; CHECK: attributes #2 = { readnone }
Expand All @@ -200,3 +228,6 @@ define void @f30() "cpu"="cortex-a8"
; CHECK: attributes #18 = { sanitize_thread }
; CHECK: attributes #19 = { sanitize_memory }
; CHECK: attributes #20 = { "cpu"="cortex-a8" }
; CHECK: attributes #21 = { sspstrong }
; CHECK: attributes #22 = { minsize }
; CHECK: attributes #23 = { nobuiltin }

0 comments on commit a71443a

Please sign in to comment.