mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 16:30:53 -05:00
14 lines
240 B
C
14 lines
240 B
C
// RUN: %clang_cc1 %s -parse-noop
|
|
|
|
// Test the X can be overloaded inside the struct.
|
|
typedef int X;
|
|
struct Y { short X; };
|
|
|
|
// Variable shadows type, PR3872
|
|
|
|
typedef struct foo { int x; } foo;
|
|
void test() {
|
|
foo *foo;
|
|
foo->x = 0;
|
|
}
|
|
|