[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Parser / types.c
blob58ace6d1661064cdae95d996a44bcd8a473f72a5
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
2 // expected-no-diagnostics
4 // Test the X can be overloaded inside the struct.
5 typedef int X;
6 struct Y { short X; };
8 // Variable shadows type, PR3872
10 typedef struct foo { int x; } foo;
11 void test(void) {
12 foo *foo;
13 foo->x = 0;