Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/spellcheck-pr104806.C

6 lines
223 B
C++
Raw Normal View History

2023-03-06 14:48:14 +01:00
// PR c++/104806
struct S {};
int main() { S s; s.__d; } // { dg-bogus "'struct S' has no member named '__d'; did you mean '__\[a-z]* '" }
// { dg-error "'struct S' has no member named '__d'" "" { target *-*-* } .-1 }