Skip to content

Commit af4d5f5

Browse files
committed
Update expected error for atomic_fetch_{add,sub}[_explicit] with pointers to member function
1 parent c1ea966 commit af4d5f5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_add.verify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ struct S {
6363
void member_function_pointer() {
6464
{
6565
volatile std::atomic<void (S::*)(int)> fun;
66-
// expected-error@*:* {{no member named 'fetch_add' in}}
66+
// expected-error@*:* {{no matching function for call to 'atomic_fetch_add'}}
6767
std::atomic_fetch_add(&fun, 0);
6868
}
6969
{
7070
std::atomic<void (S::*)(int)> fun;
71-
// expected-error@*:* {{no member named 'fetch_add' in}}
71+
// expected-error@*:* {{no matching function for call to 'atomic_fetch_add'}}
7272
std::atomic_fetch_add(&fun, 0);
7373
}
7474
}

libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_add_explicit.verify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ struct S {
6666
void member_function_pointer() {
6767
{
6868
volatile std::atomic<void (S::*)(int)> fun;
69-
// expected-error@*:* {{no member named 'fetch_add' in}}
69+
// expected-error@*:* {{no matching function for call to 'atomic_fetch_add_explicit'}}
7070
std::atomic_fetch_add_explicit(&fun, 0, std::memory_order_relaxed);
7171
}
7272
{
7373
std::atomic<void (S::*)(int)> fun;
74-
// expected-error@*:* {{no member named 'fetch_add' in}}
74+
// expected-error@*:* {{no matching function for call to 'atomic_fetch_add_explicit'}}
7575
std::atomic_fetch_add_explicit(&fun, 0, std::memory_order_relaxed);
7676
}
7777
}

libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_sub.verify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ struct S {
6363
void member_function_pointer() {
6464
{
6565
volatile std::atomic<void (S::*)(int)> fun;
66-
// expected-error@*:* {{no member named 'fetch_sub' in}}
66+
// expected-error@*:* {{no matching function for call to 'atomic_fetch_sub'}}
6767
std::atomic_fetch_sub(&fun, 0);
6868
}
6969
{
7070
std::atomic<void (S::*)(int)> fun;
71-
// expected-error@*:* {{no member named 'fetch_sub' in}}
71+
// expected-error@*:* {{no matching function for call to 'atomic_fetch_sub'}}
7272
std::atomic_fetch_sub(&fun, 0);
7373
}
7474
}

libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_sub_explicit.verify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ struct S {
6666
void member_function_pointer() {
6767
{
6868
volatile std::atomic<void (S::*)(int)> fun;
69-
// expected-error@*:* {{no member named 'fetch_sub' in}}
69+
// expected-error@*:* {{no matching function for call to 'atomic_fetch_sub_explicit'}}
7070
std::atomic_fetch_sub_explicit(&fun, 0, std::memory_order_relaxed);
7171
}
7272
{
7373
std::atomic<void (S::*)(int)> fun;
74-
// expected-error@*:* {{no member named 'fetch_sub' in}}
74+
// expected-error@*:* {{no matching function for call to 'atomic_fetch_sub_explicit'}}
7575
std::atomic_fetch_sub_explicit(&fun, 0, std::memory_order_relaxed);
7676
}
7777
}

0 commit comments

Comments
 (0)