Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/explicit-obj-cxx-dialect-C.C

raw
1 // P0847R7
2 // { dg-do compile { target c++20_down } }
3 // don't pass in -pedantic-errors
4 // { dg-options "" }
5
6 struct S {
7 void f(this S); // { dg-warning {explicit object member function only available with '-std=c\+\+23' or '-std=gnu\+\+23'} }
8 };
9