summaryrefslogtreecommitdiff
path: root/test/Bitcode
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-12 09:14:20 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-12 09:14:20 +0000
commitd7fdee493b016a54a8a6fbdd3359576488fad582 (patch)
tree77201b25251fcf5dd9c6915ff00f7815ca4ea4d4 /test/Bitcode
parent48fbcfe6b959df628a6455e00ac8d94fa6ade87a (diff)
downloadllvm-d7fdee493b016a54a8a6fbdd3359576488fad582.tar.gz
llvm-d7fdee493b016a54a8a6fbdd3359576488fad582.tar.bz2
llvm-d7fdee493b016a54a8a6fbdd3359576488fad582.tar.xz
Test for string attributes and for attribute group output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r--test/Bitcode/attributes.ll28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/Bitcode/attributes.ll b/test/Bitcode/attributes.ll
index cfb214e792..76fde786a4 100644
--- a/test/Bitcode/attributes.ll
+++ b/test/Bitcode/attributes.ll
@@ -172,3 +172,31 @@ define void @f29() uninitialized_checks
{
ret void;
}
+
+define void @f30() "cpu"="cortex-a8"
+; CHECK: define void @f30() "cpu"="cortex-a8"
+{
+ ret void;
+}
+
+; CHECK: attributes #0 = { noreturn }
+; CHECK: attributes #1 = { nounwind }
+; CHECK: attributes #2 = { readnone }
+; CHECK: attributes #3 = { readonly }
+; CHECK: attributes #4 = { noinline }
+; CHECK: attributes #5 = { alwaysinline }
+; CHECK: attributes #6 = { optsize }
+; CHECK: attributes #7 = { ssp }
+; CHECK: attributes #8 = { sspreq }
+; CHECK: attributes #9 = { noredzone }
+; CHECK: attributes #10 = { noimplicitfloat }
+; CHECK: attributes #11 = { naked }
+; CHECK: attributes #12 = { inlinehint }
+; CHECK: attributes #13 = { alignstack=4 }
+; CHECK: attributes #14 = { returns_twice }
+; CHECK: attributes #15 = { uwtable }
+; CHECK: attributes #16 = { nonlazybind }
+; CHECK: attributes #17 = { address_safety }
+; CHECK: attributes #18 = { thread_safety }
+; CHECK: attributes #19 = { uninitialized_checks }
+; CHECK: attributes #20 = { "cpu"="cortex-a8" }