Skip to content

Commit

Permalink
Fix some missing negations in the traits checking from r294349
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294357 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed Feb 7, 2017
1 parent 0956efb commit 299fa93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unittests/ADT/IListIteratorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ TEST(IListIteratorTest, ReverseConstructor) {
EXPECT_EQ(CL.rbegin(), const_reverse_iterator(CL.end()));

// Confirm lack of implicit conversions.
static_assert(std::is_convertible<iterator, reverse_iterator>::value,
static_assert(!std::is_convertible<iterator, reverse_iterator>::value,
"unexpected implicit conversion");
static_assert(std::is_convertible<reverse_iterator, iterator>::value,
static_assert(!std::is_convertible<reverse_iterator, iterator>::value,
"unexpected implicit conversion");
static_assert(
std::is_convertible<const_iterator, const_reverse_iterator>::value,
!std::is_convertible<const_iterator, const_reverse_iterator>::value,
"unexpected implicit conversion");
static_assert(
std::is_convertible<const_reverse_iterator, const_iterator>::value,
!std::is_convertible<const_reverse_iterator, const_iterator>::value,
"unexpected implicit conversion");
}

Expand Down

0 comments on commit 299fa93

Please sign in to comment.