Fix the clang-wpa example.
[clang.git] / test / Parser / types.c
blob53b9dd5e9eca1b59cd94d7beb4585b60284e3b7a
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
3 // Test the X can be overloaded inside the struct.
4 typedef int X;
5 struct Y { short X; };
7 // Variable shadows type, PR3872
9 typedef struct foo { int x; } foo;
10 void test() {
11 foo *foo;
12 foo->x = 0;