Clang Project

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