mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 03:32:35 +08:00
Tolerate even more [[nodiscard]] in the STL. Reviewed as https://reviews.llvm.org/D39080
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@318277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,7 +24,7 @@ test1()
|
||||
{
|
||||
typedef std::mt19937 E;
|
||||
E e1;
|
||||
e1();
|
||||
(void)e1();
|
||||
E e2 = e1;
|
||||
assert(e1 == e2);
|
||||
assert(e1() == e2());
|
||||
@@ -39,7 +39,7 @@ test2()
|
||||
{
|
||||
typedef std::mt19937_64 E;
|
||||
E e1;
|
||||
e1();
|
||||
(void)e1();
|
||||
E e2(e1);
|
||||
assert(e1 == e2);
|
||||
assert(e1() == e2());
|
||||
|
Reference in New Issue
Block a user