2009-12-15 23:14:24 +03:00
|
|
|
// RUN: %clang_cc1 -emit-llvm <%s
|
2008-02-05 11:06:13 +03:00
|
|
|
|
|
|
|
struct FileName {
|
|
|
|
struct FileName *next;
|
|
|
|
} *fnhead;
|
|
|
|
|
|
|
|
|
|
|
|
struct ieeeExternal {
|
|
|
|
struct ieeeExternal *next;
|
|
|
|
} *exthead;
|
|
|
|
|
|
|
|
|
2008-02-06 07:51:19 +03:00
|
|
|
void test1()
|
2008-02-05 11:06:13 +03:00
|
|
|
{
|
|
|
|
struct ieeeExternal *exttmp = exthead;
|
|
|
|
}
|
2008-02-06 07:51:19 +03:00
|
|
|
|
|
|
|
struct MpegEncContext;
|
|
|
|
typedef struct MpegEncContext {int pb;} MpegEncContext;
|
|
|
|
static void test2(void) {MpegEncContext s; s.pb;}
|
|
|
|
|
2008-04-03 09:50:42 +04:00
|
|
|
|
|
|
|
struct Village;
|
|
|
|
|
|
|
|
struct List {
|
|
|
|
struct Village *v;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Village {
|
|
|
|
struct List returned;
|
|
|
|
};
|
|
|
|
|
|
|
|
void test3(struct List a) {
|
|
|
|
}
|