28 lines · c
1// RUN: %clang_cc1 -triple i386-unknown-unknown -O2 -emit-llvm -o - %s | FileCheck %s2// CHECK-LABEL: define{{.*}} i32 @f0()3// CHECK: ret i32 04// CHECK-LABEL: define{{.*}} i32 @f1()5// CHECK: ret i32 06// CHECK-LABEL: define{{.*}} i32 @f2()7// CHECK: ret i32 08 9struct s0 {10 int x, y;11};12 13int f0(void) {14 struct s0 x = {0};15 return x.y;16}17 18int f1(void) {19 struct s0 x[2] = { {0} };20 return x[1].x;21}22 23int f2(void) {24 int x[2] = { 0 };25 return x[1];26}27 28