1// RUN: %clang_cc1 -emit-llvm <%s
2
3struct FileName {
4    struct FileName *next;
5} *fnhead;
6
7
8struct ieeeExternal {
9    struct ieeeExternal *next;
10} *exthead;
11
12
13void test1()
14{
15    struct ieeeExternal *exttmp = exthead;
16}
17
18struct MpegEncContext;
19typedef struct MpegEncContext {int pb;} MpegEncContext;
20static void test2(void) {MpegEncContext s; s.pb;}
21
22
23struct Village;
24
25struct List {
26  struct Village *v;
27};
28
29struct Village {
30  struct List returned;
31};
32
33void test3(struct List a) {
34}
35