diff options
| author | Eric Fiselier <eric@efcs.ca> | 2017-10-17 13:45:20 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2017-10-17 13:45:20 +0000 |
| commit | 8092cbfbc3fda364c3ee7d9bf1db7a0ddd493132 (patch) | |
| tree | 3cc5dee6a014ea3bef959bf2fbe6499d4db521bb /libcxx/test | |
| parent | 30b4418e5ac6c7f4b6f88571c4fe0f2b7d6b37d7 (diff) | |
| download | bcm5719-llvm-8092cbfbc3fda364c3ee7d9bf1db7a0ddd493132.tar.gz bcm5719-llvm-8092cbfbc3fda364c3ee7d9bf1db7a0ddd493132.zip | |
fix shadowing warnings in new tests
llvm-svn: 315997
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/support/emplace_constructible.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/support/emplace_constructible.h b/libcxx/test/support/emplace_constructible.h index f2bc0ec6a36..54fa6879d03 100644 --- a/libcxx/test/support/emplace_constructible.h +++ b/libcxx/test/support/emplace_constructible.h @@ -7,7 +7,7 @@ template <class T> struct EmplaceConstructible { T value; - explicit EmplaceConstructible(T value) : value(value) {} + explicit EmplaceConstructible(T xvalue) : value(xvalue) {} EmplaceConstructible(EmplaceConstructible const&) = delete; }; @@ -15,7 +15,7 @@ template <class T> struct EmplaceConstructibleAndMoveInsertable { int copied = 0; T value; - explicit EmplaceConstructibleAndMoveInsertable(T value) : value(value) {} + explicit EmplaceConstructibleAndMoveInsertable(T xvalue) : value(xvalue) {} EmplaceConstructibleAndMoveInsertable( EmplaceConstructibleAndMoveInsertable&& Other) @@ -27,7 +27,7 @@ struct EmplaceConstructibleAndMoveable { int copied = 0; int assigned = 0; T value; - explicit EmplaceConstructibleAndMoveable(T value) noexcept : value(value) {} + explicit EmplaceConstructibleAndMoveable(T xvalue) noexcept : value(xvalue) {} EmplaceConstructibleAndMoveable(EmplaceConstructibleAndMoveable&& Other) noexcept : copied(Other.copied + 1), |

