aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/explicit-obj-cxx-dialect-C.C
blob: 182e294c883319b25e1bd4499170d75a1f56b02a (plain)
1
2
3
4
5
6
7
8
9
// P0847R7
// { dg-do compile { target c++20_down } }
// don't pass in -pedantic-errors
// { dg-options "" }

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