Change member variable name in test

Names starting with an underscore aren't allowed in a global namespace,
according to the standard.
This commit is contained in:
Bolshakov 2022-12-02 11:45:22 +03:00 committed by Kim Gräsman
parent 7b9c04c0d3
commit ac93b84f01
1 changed files with 4 additions and 4 deletions

View File

@ -17,15 +17,15 @@ class A {
// IWYU: IndirectClass needs a declaration
IndirectClass *getIndirectClass(int i) {
// IWYU: IndirectClass is...*indirect.h
(void)sizeof(_b[i]); // requires full type
(void)sizeof(b[i]); // requires full type
// IWYU: IndirectClass needs a declaration
// IWYU: IndirectClass is...*indirect.h
(void)sizeof(&(_b[i])); // requires full type
(void)sizeof(&(b[i])); // requires full type
// IWYU: IndirectClass is...*indirect.h
return &(_b[i]);
return &(b[i]);
}
// IWYU: IndirectClass needs a declaration
IndirectClass *_b;
IndirectClass *b;
};