| Douglas Gregor | 8c70006 | 2009-04-13 21:20:57 +0000 | [diff] [blame] | 1 | // Used with the struct.c test |
| 2 | |||||
| 3 | struct Point { | ||||
| 4 | float x, y, z; | ||||
| 5 | }; | ||||
| 6 | |||||
| 7 | struct Point2 { | ||||
| 8 | float xValue, yValue, zValue; | ||||
| 9 | }; | ||||
| 10 | |||||
| 11 | struct Fun; | ||||
| 12 | |||||
| 13 | struct Fun *fun; | ||||
| 14 | |||||
| 15 | struct Fun { | ||||
| 16 | int is_ptr; | ||||
| 17 | |||||
| 18 | union { | ||||
| 19 | void *ptr; | ||||
| 20 | int *integer; | ||||
| 21 | }; | ||||
| 22 | }; | ||||
| 23 | |||||
| 24 | struct Fun2; | ||||
| 25 | struct Fun2 *fun2; | ||||
| Douglas Gregor | 2417ef7 | 2009-04-14 17:10:28 +0000 | [diff] [blame^] | 26 | |
| 27 | struct S { | ||||
| 28 | struct Nested { int x, y; } nest; | ||||
| 29 | }; | ||||