This reverts commit d618f1c3b12effd0c2bdb7d02108d3551f389d3d. This commit wasn't reviewed ahead of time and significant concerns were raised immediately after it landed. According to our developer policy this warrants immediate revert of the commit. https://llvm.org/docs/DeveloperPolicy.html#patch-reversion-policy Differential Revision: https://reviews.llvm.org/D155509
29 lines
495 B
C
29 lines
495 B
C
// RUN: %clang_cc1 -triple i386-unknown-unknown -O2 -emit-llvm -o - %s | FileCheck %s
|
|
// CHECK-LABEL: define{{.*}} i32 @f0()
|
|
// CHECK: ret i32 0
|
|
// CHECK-LABEL: define{{.*}} i32 @f1()
|
|
// CHECK: ret i32 0
|
|
// CHECK-LABEL: define{{.*}} i32 @f2()
|
|
// CHECK: ret i32 0
|
|
// <rdar://problem/6113085>
|
|
|
|
struct s0 {
|
|
int x, y;
|
|
};
|
|
|
|
int f0(void) {
|
|
struct s0 x = {0};
|
|
return x.y;
|
|
}
|
|
|
|
int f1(void) {
|
|
struct s0 x[2] = { {0} };
|
|
return x[1].x;
|
|
}
|
|
|
|
int f2(void) {
|
|
int x[2] = { 0 };
|
|
return x[1];
|
|
}
|
|
|