diff options
Diffstat (limited to 'llvm/unittests/IR/AttributesTest.cpp')
-rw-r--r-- | llvm/unittests/IR/AttributesTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/unittests/IR/AttributesTest.cpp b/llvm/unittests/IR/AttributesTest.cpp index 7af4aebd540..ab018d84538 100644 --- a/llvm/unittests/IR/AttributesTest.cpp +++ b/llvm/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 |