blob: 2ecae9fa6d59f541a0c52105a2e339b1b4a74916 [file] [log] [blame]
Daniel Dunbard7f60502008-11-08 04:42:29 +00001// RUN: clang -o %t --emit-llvm -g %s
2
Chris Lattner5c11d4e2008-11-11 06:27:34 +00003// PR3023
Daniel Dunbard7f60502008-11-08 04:42:29 +00004void convert(void) {
5 struct { typeof(0) f0; } v0;
6}
Chris Lattner14132172008-11-11 06:42:53 +00007
8// PR2784
9struct OPAQUE;
10typedef struct OPAQUE *PTR;
11PTR p;
12
13
14// PR2950
15struct s0;
16struct s0 { struct s0 *p; } g0;
17
18struct s0 *f0(struct s0 *a0) {
19 return a0->p;
20}
Nuno Lopes010d5142009-01-28 00:35:17 +000021
Anders Carlsson4d6e8dd2008-11-26 17:40:42 +000022// PR3134
23char xpto[];
24
Nuno Lopes010d5142009-01-28 00:35:17 +000025// PR3427
26struct foo {
27 int a;
28 void *ptrs[];
29};
30struct foo bar;