blob: e0ec2c9027cf9464a8717d8a987fc5c313932fb7 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -o %t --emit-llvm -g %s
Daniel Dunbard7f60502008-11-08 04:42:29 +00002
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;
Eli Friedman3189e4b2009-05-04 04:39:55 +000031
32// PR4143
33struct foo2 {
34 enum bar *bar;
35};
36
37struct foo2 foo2;