PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git] / test / FrontendC / 2002-03-12-StructInitializer.c
blobcf2ba4e8cf89a43f90c3a44cedf8f5606b7c0a53
1 // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
3 /* 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 */
8 typedef struct Connection_Type {
9 long to;
10 char type[10];
11 long length;
12 } Connection;
14 Connection link[3]
15 = { {1, "link1", 10},
16 {2, "link2", 20},
17 {3, "link3", 30} };