aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/explicit-obj-cxx-dialect-B.C
blob: fb2a6a0e41b94947ebb861f51a862c60bb7aeb05 (plain)
1
2
3
4
5
6
7
// P0847R7
// { dg-do compile { target c++20_down } }

struct S {
    void f(this S); // { dg-error {explicit object member function only available with '-std=c\+\+23' or '-std=gnu\+\+23'} }
};