2010-01-01 10:34:51 +00:00

15 lines
240 B
C

// RUN: %clang_cc1 %s -parse-noop
// Test the X can be overloaded inside the struct.
typedef int X;
struct Y { short X; };
// Variable shadows type, PR3872
typedef struct foo { int x; } foo;
void test() {
foo *foo;
foo->x = 0;
}