blob: 0e8a63d81fc0a3c1e876a69d5337cc3ae324d52a [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -parse-noop
Reid Spencer5f016e22007-07-11 17:01:13 +00002
3// Test the X can be overloaded inside the struct.
4typedef int X;
5struct Y { short X; };
6
Chris Lattnerf26d5102009-03-24 17:05:27 +00007// Variable shadows type, PR3872
8
9typedef struct foo { int x; } foo;
10void test() {
11 foo *foo;
12 foo->x = 0;
13}
14