2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -emit-llvm <%s
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
struct FileName {
|
|
|
|
struct FileName *next;
|
|
|
|
} *fnhead;
|
|
|
|
|
|
|
|
|
|
|
|
struct ieeeExternal {
|
|
|
|
struct ieeeExternal *next;
|
|
|
|
} *exthead;
|
|
|
|
|
|
|
|
|
|
|
|
void test1()
|
|
|
|
{
|
|
|
|
struct ieeeExternal *exttmp = exthead;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct MpegEncContext;
|
|
|
|
typedef struct MpegEncContext {int pb;} MpegEncContext;
|
|
|
|
static void test2(void) {MpegEncContext s; s.pb;}
|
|
|
|
|
|
|
|
|
|
|
|
struct Village;
|
|
|
|
|
|
|
|
struct List {
|
|
|
|
struct Village *v;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Village {
|
|
|
|
struct List returned;
|
|
|
|
};
|
|
|
|
|
|
|
|
void test3(struct List a) {
|
|
|
|
}
|