summaryrefslogtreecommitdiff
path: root/unittests/IR/AttributesTest.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-06-01 20:58:36 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-06-01 20:58:36 +0000
commitf382538d471e38a9b98f016c4caebd24c8d60b62 (patch)
treed30f3d58b1044b5355d50c17a6a96c6a0b35703a /unittests/IR/AttributesTest.cpp
parentee2f195dd3e40f49698ca4dc2666ec09c770e80d (diff)
Notes
Diffstat (limited to 'unittests/IR/AttributesTest.cpp')
-rw-r--r--unittests/IR/AttributesTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/unittests/IR/AttributesTest.cpp b/unittests/IR/AttributesTest.cpp
index 7af4aebd540a..ab018d845382 100644
--- a/unittests/IR/AttributesTest.cpp
+++ b/unittests/IR/AttributesTest.cpp
@@ -82,4 +82,11 @@ TEST(Attributes, AddMatchingAlignAttr) {
EXPECT_TRUE(AL.hasParamAttribute(0, Attribute::NonNull));
}
+TEST(Attributes, EmptyGet) {
+ LLVMContext C;
+ AttributeList EmptyLists[] = {AttributeList(), AttributeList()};
+ AttributeList AL = AttributeList::get(C, EmptyLists);
+ EXPECT_TRUE(AL.isEmpty());
+}
+
} // end anonymous namespace