blob: fa333b78a95fda6f3fab624ea1f3d6e96ab79d3a [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Tanya Lattnere9af5d12004-11-06 22:41:00 +00002
Chris Lattner4b3f9452002-03-12 18:56:45 +00003/* GCC was not emitting string constants of the correct length when
4 * embedded into a structure field like this. It thought the strlength
5 * was -1.
6 */
7
8typedef struct Connection_Type {
9 long to;
10 char type[10];
11 long length;
12} Connection;
13
14Connection link[3]
15= { {1, "link1", 10},
16 {2, "link2", 20},
17 {3, "link3", 30} };
18