1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -emit-llvm -o - | FileCheck %s
10 // CHECK: { [6 x i8] c"foo\00\00\00", [6 x i8] c"\00x\00\00\00\00" }
12 (struct Q1
){ "foo", "bar" },
17 // CHECK: { [6 x i8] c"foo\00\00\00", [6 x i8] c"bxo\00\00\00" }
19 (struct Q1
){ "foo", "bar" },
25 struct P2
{ char x
[6]; };
27 // CHECK: { [6 x i8] c"n\00\00\00\00\00" }
45 // CHECK: @l3 ={{.*}} global %struct.P3 { %struct.Q3 { %struct.R1 { i32 1, i32 2, i32 3 }, %struct.R2 { i32 0, i32 10, i32 0 } } }
47 (struct Q3
){ { 1, 2, 3 }, { 4, 5, 6 } },
52 // This bit is taken from Sema/wchar.c so we can avoid the wchar.h include.
53 typedef __WCHAR_TYPE__
wchar_t;
59 // CHECK: { [6 x i32] [i32 102, i32 111, i32 120, i32 0, i32 0, i32 0] }
60 struct P4 l4
= { { L
"foo" }, .x
[2] = L
'x' };
71 // CHECK: @l5 ={{.*}} global %struct.P5 { i32 1, %struct.Q5 { i32 6, i32 9, i32 8 }, i32 5 }
72 struct P5 l5
= { 1, { 2, 3, 4 }, 5,