Fix shadowing warning. Patch from STL@microsoft.com

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@284941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-10-23 18:47:58 +00:00
parent 741cb8b8e6
commit e2c4227504

View File

@@ -81,8 +81,8 @@ void test_multi_arg()
{
test_one_arg<T>();
using Opt = std::optional<T>;
Opt opt;
{
Opt opt;
opt.emplace(101, 41);
assert(static_cast<bool>(opt) == true);
assert(*opt == T(101, 41));