diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2017-07-27 17:44:03 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2017-07-27 17:44:03 +0000 |
commit | 88c893cc33a2f2a5dbb531bbb92849beba536c62 (patch) | |
tree | 6a7a8b07d6675aaeeb8e1e7991c5dd291d3ad32b /libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp | |
parent | de46274d7bb41dcd9195d3436dc585fd64326ec0 (diff) | |
download | bcm5719-llvm-88c893cc33a2f2a5dbb531bbb92849beba536c62.tar.gz bcm5719-llvm-88c893cc33a2f2a5dbb531bbb92849beba536c62.zip |
Implement P0739R0: 'Some improvements to class template argument deduction integration into the standard library' This is an API change (not ABI change) due to a late change in the c++17 standard
llvm-svn: 309296
Diffstat (limited to 'libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp')
-rw-r--r-- | libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp b/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp index f3113435f3c..676c8bc26b1 100644 --- a/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp +++ b/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp @@ -261,4 +261,9 @@ int main() { test_copy_ctor_valueless_by_exception(); test_copy_ctor_sfinae(); test_constexpr_copy_ctor_extension(); +{ // This is the motivating example from P0739R0 + std::variant<int, double> v1(3); + std::variant v2 = v1; + (void) v2; +} } |