1*67e74705SXin Li // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2*67e74705SXin Li 3*67e74705SXin Li /* GCC was not emitting string constants of the correct length when 4*67e74705SXin Li * embedded into a structure field like this. It thought the strlength 5*67e74705SXin Li * was -1. 6*67e74705SXin Li */ 7*67e74705SXin Li 8*67e74705SXin Li typedef struct Connection_Type { 9*67e74705SXin Li long to; 10*67e74705SXin Li char type[10]; 11*67e74705SXin Li long length; 12*67e74705SXin Li } Connection; 13*67e74705SXin Li 14*67e74705SXin Li Connection link[3] 15*67e74705SXin Li = { {1, "link1", 10}, 16*67e74705SXin Li {2, "link2", 20}, 17*67e74705SXin Li {3, "link3", 30} }; 18*67e74705SXin Li 19