aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/explicit-obj-cxx-dialect-E.C
blob: 411b70c3d9d15b481089b64984430d29b18bb91e (plain)
1
2
3
4
5
6
7
8
// P0847R7
// { dg-do compile { target c++20_down } }
// { dg-options "-Wno-c++23-extensions -pedantic-errors" }

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