opnsense-src/test/Parser/types.c

15 lines
240 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 %s -parse-noop
2009-06-02 13:58:47 -04:00
// 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;
}