[gcn] install.texi: Update for new ISA targets and their requirements
[gcc.git] / gcc / testsuite / g++.dg / cpp23 / explicit-obj-diagnostics4.C
blob1744b3f2299623dc0fb5013117deb3cd9d1ced5a
1 // P0847R7
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 }
9 struct S {
10   void f(this S s) {
11     // The specific diagnosis issued here does not matter
12     // we just need to force an error to be emitted
13     +s; // { dg-error "" }
14   }