2 // { dg-do compile { target c++23 } }
4 // location diagnostic text when an error is emitted from an xobj member function
5 // this does not test for specific ill-formed code, just the additional diagnostic message
7 // { dg-message "In explicit object member function" "" { target *-*-* } 0 }
11 // The specific diagnosis issued here does not matter
12 // we just need to force an error to be emitted
13 +s; // { dg-error "" }