sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | |
mueller | b3a8929 | 2004-01-03 14:24:42 +0000 | [diff] [blame] | 2 | #include <stdlib.h> |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 3 | |
4 | typedef | ||||
5 | struct { | ||||
6 | int x; | ||||
7 | unsigned int y:1; | ||||
8 | int z; | ||||
9 | } | ||||
10 | Fooble; | ||||
11 | |||||
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 12 | int main ( void ) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 13 | { |
14 | Fooble* f = malloc(sizeof(Fooble)); | ||||
15 | f->x = 1; | ||||
16 | f->z = 1; | ||||
17 | f->y = (f == (Fooble*)17 ? 1 : 0); | ||||
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 18 | return 0; |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 19 | } |