Debian Codegraph @

clang/test/Parser/types.c

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