16 lines · c
1// RUN: %clang_cc1 %s -fsyntax-only -verify2// expected-no-diagnostics3 4// Test the X can be overloaded inside the struct.5typedef int X; 6struct Y { short X; };7 8// Variable shadows type, PR38729 10typedef struct foo { int x; } foo;11void test(void) {12 foo *foo;13 foo->x = 0;14}15 16