diff options
| author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-07-17 22:13:44 +0000 |
|---|---|---|
| committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-07-17 22:13:44 +0000 |
| commit | 00cf53520bfe51c6b9bdb81c3a0e613cc3180586 (patch) | |
| tree | 8a91e32e10a841e0c9e4d267df9b8fbf4924f719 /llvm/test/Bitcode | |
| parent | 57c67118938115bc2dab91aa0b98fc7d9c261612 (diff) | |
| download | bcm5719-llvm-00cf53520bfe51c6b9bdb81c3a0e613cc3180586.tar.gz bcm5719-llvm-00cf53520bfe51c6b9bdb81c3a0e613cc3180586.zip | |
Add some uncovered attribute tests
llvm-svn: 186538
Diffstat (limited to 'llvm/test/Bitcode')
| -rw-r--r-- | llvm/test/Bitcode/attributes.ll | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/attributes.ll b/llvm/test/Bitcode/attributes.ll index 6c46e94012a..92f892ad1e5 100644 --- a/llvm/test/Bitcode/attributes.ll +++ b/llvm/test/Bitcode/attributes.ll @@ -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 } @@ -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 } |

