summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/types.c
blob: 55b806c93a25310e2e579394d0af0d36b41e1aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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) {
}