Debian Codegraph @

gcc/testsuite/g++.dg/lookup/pr86329.C

raw
1 /* PR c++/86329: ensure we don't erroneously offer suggestions like "._0",
2 which are an implementation detail of how e.g. anonymous enums are
3 handled internally. */
4
5 enum {NONEMPTY};
6
7 int test()
8 {
9 return __0; // { dg-error "'__0' was not declared in this scope" }
10 // { dg-bogus "suggested alternative" "" { target *-*-* } .-1 }
11 }