summaryrefslogtreecommitdiffstats
path: root/libcxx/test/numerics/rand
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/numerics/rand')
-rw-r--r--libcxx/test/numerics/rand/rand.eng/rand.eng.mers/copy.pass.cpp2
-rw-r--r--libcxx/test/numerics/rand/rand.eng/rand.eng.sub/copy.pass.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/copy.pass.cpp b/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/copy.pass.cpp
index 322ba3ea7db..57c015ccce1 100644
--- a/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/copy.pass.cpp
+++ b/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/copy.pass.cpp
@@ -40,7 +40,7 @@ test2()
typedef std::mt19937_64 E;
E e1;
e1();
- E e2 = e1;
+ E e2(e1);
assert(e1 == e2);
assert(e1() == e2());
E::result_type k = e1();
diff --git a/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/copy.pass.cpp b/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/copy.pass.cpp
index 4c5ac8f83b9..27f88165bcf 100644
--- a/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/copy.pass.cpp
+++ b/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/copy.pass.cpp
@@ -38,7 +38,7 @@ test2()
typedef std::ranlux48_base E;
E e1;
e1();
- E e2 = e1;
+ E e2(e1);
assert(e1 == e2);
assert(e1() == e2());
E::result_type k = e1();
OpenPOWER on IntegriCloud