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