types.c   [plain text]


// RUN: %clang_cc1 -emit-llvm <%s

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) {
}