diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2014-12-09 14:49:17 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2014-12-09 14:49:17 +0000 |
commit | e61fba3b70949e2955f946b81a215c7e08d9aee6 (patch) | |
tree | c8ac956685f44e5643300ccbce2ec8d01b11aec5 /libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp | |
parent | f57ac3bd224bf34b97f228d23454c03e6b4860cd (diff) | |
download | bcm5719-llvm-e61fba3b70949e2955f946b81a215c7e08d9aee6.tar.gz bcm5719-llvm-e61fba3b70949e2955f946b81a215c7e08d9aee6.zip |
Add all the relational operators to std::experimental::optional. Also update bad_optional_access to match the Library Fundamentals draft standard. This is not all of the upcoming changes to optional, though.
llvm-svn: 223775
Diffstat (limited to 'libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp')
-rw-r--r-- | libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp b/libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp index 8d70e92dda6..37f7e194298 100644 --- a/libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp +++ b/libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp @@ -43,20 +43,20 @@ int main() static_assert ( !(o1 < o1), "" ); static_assert ( !(o1 < o2), "" ); - static_assert ( o1 < o3 , "" ); - static_assert ( o1 < o4 , "" ); - static_assert ( o1 < o5 , "" ); + static_assert ( (o1 < o3), "" ); + static_assert ( (o1 < o4), "" ); + static_assert ( (o1 < o5), "" ); static_assert ( !(o2 < o1), "" ); static_assert ( !(o2 < o2), "" ); - static_assert ( o2 < o3 , "" ); - static_assert ( o2 < o4 , "" ); - static_assert ( o2 < o5 , "" ); + static_assert ( (o2 < o3), "" ); + static_assert ( (o2 < o4), "" ); + static_assert ( (o2 < o5), "" ); static_assert ( !(o3 < o1), "" ); static_assert ( !(o3 < o2), "" ); static_assert ( !(o3 < o3), "" ); - static_assert ( o3 < o4 , "" ); + static_assert ( (o3 < o4), "" ); static_assert ( !(o3 < o5), "" ); static_assert ( !(o4 < o1), "" ); @@ -68,7 +68,7 @@ int main() static_assert ( !(o5 < o1), "" ); static_assert ( !(o5 < o2), "" ); static_assert ( !(o5 < o3), "" ); - static_assert ( o5 < o4 , "" ); + static_assert ( (o5 < o4), "" ); static_assert ( !(o5 < o5), "" ); } #endif |