Skip to content

Commit 3147ebf

Browse files
committed
[libc++][atomic_ref] Fix shadow warning
1 parent 45d0e15 commit 3147ebf

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

libcxx/test/std/atomics/atomics.ref/fetch_add.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ void test_arithmetic() {
4747

4848
template <typename T>
4949
void test_pointer() {
50-
using X = std::remove_pointer_t<T>;
51-
X t[9] = {};
50+
using U = std::remove_pointer_t<T>;
51+
U t[9] = {};
5252
T p{&t[1]};
5353
std::atomic_ref<T> a(p);
5454

libcxx/test/std/atomics/atomics.ref/fetch_sub.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ void test_arithmetic() {
4747

4848
template <typename T>
4949
void test_pointer() {
50-
using X = std::remove_pointer_t<T>;
51-
X t[9] = {};
50+
using U = std::remove_pointer_t<T>;
51+
U t[9] = {};
5252
T p{&t[7]};
5353
std::atomic_ref<T> a(p);
5454

libcxx/test/std/atomics/atomics.ref/operator_minus_equals.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ void test_arithmetic() {
4040

4141
template <typename T>
4242
void test_pointer() {
43-
using X = std::remove_pointer_t<T>;
44-
X t[9] = {};
43+
using U = std::remove_pointer_t<T>;
44+
U t[9] = {};
4545
T p{&t[3]};
4646
std::atomic_ref<T> a(p);
4747

libcxx/test/std/atomics/atomics.ref/operator_plus_equals.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ void test_arithmetic() {
4040

4141
template <typename T>
4242
void test_pointer() {
43-
using X = std::remove_pointer_t<T>;
44-
X t[9] = {};
43+
using U = std::remove_pointer_t<T>;
44+
U t[9] = {};
4545
T p{&t[1]};
4646
std::atomic_ref<T> a(p);
4747

0 commit comments

Comments
 (0)