Chris Lattner | 4b3f945 | 2002-03-12 18:56:45 +0000 | [diff] [blame] | 1 | /* GCC was not emitting string constants of the correct length when |
2 | * embedded into a structure field like this. It thought the strlength | ||||
3 | * was -1. | ||||
4 | */ | ||||
5 | |||||
6 | typedef struct Connection_Type { | ||||
7 | long to; | ||||
8 | char type[10]; | ||||
9 | long length; | ||||
10 | } Connection; | ||||
11 | |||||
12 | Connection link[3] | ||||
13 | = { {1, "link1", 10}, | ||||
14 | {2, "link2", 20}, | ||||
15 | {3, "link3", 30} }; | ||||
16 |