summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/types.c
blob: 75cb851c2599420ef9b826a2b7ca535648d8bdce (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-cc -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) {
}
OpenPOWER on IntegriCloud