1// RUN: %clang_cc1 %s -fsyntax-only -verify
2
3// Test the X can be overloaded inside the struct.
4typedef int X;
5struct Y { short X; };
6
7// Variable shadows type, PR3872
8
9typedef struct foo { int x; } foo;
10void test() {
11   foo *foo;
12   foo->x = 0;
13}
14
15