Daniel Dunbar | d7f6050 | 2008-11-08 04:42:29 +0000 | [diff] [blame] | 1 | // RUN: clang -o %t --emit-llvm -g %s |
2 | |||||
Chris Lattner | 5c11d4e | 2008-11-11 06:27:34 +0000 | [diff] [blame] | 3 | // PR3023 |
Daniel Dunbar | d7f6050 | 2008-11-08 04:42:29 +0000 | [diff] [blame] | 4 | void convert(void) { |
5 | struct { typeof(0) f0; } v0; | ||||
6 | } | ||||
Chris Lattner | 1413217 | 2008-11-11 06:42:53 +0000 | [diff] [blame] | 7 | |
8 | // PR2784 | ||||
9 | struct OPAQUE; | ||||
10 | typedef struct OPAQUE *PTR; | ||||
11 | PTR p; | ||||
12 | |||||
13 | |||||
14 | // PR2950 | ||||
15 | struct s0; | ||||
16 | struct s0 { struct s0 *p; } g0; | ||||
17 | |||||
18 | struct s0 *f0(struct s0 *a0) { | ||||
19 | return a0->p; | ||||
20 | } | ||||
Nuno Lopes | 010d514 | 2009-01-28 00:35:17 +0000 | [diff] [blame] | 21 | |
Anders Carlsson | 4d6e8dd | 2008-11-26 17:40:42 +0000 | [diff] [blame] | 22 | // PR3134 |
23 | char xpto[]; | ||||
24 | |||||
Nuno Lopes | 010d514 | 2009-01-28 00:35:17 +0000 | [diff] [blame] | 25 | // PR3427 |
26 | struct foo { | ||||
27 | int a; | ||||
28 | void *ptrs[]; | ||||
29 | }; | ||||
30 | struct foo bar; |