1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
17 lines
344 B
C
17 lines
344 B
C
// RUN: %clang_cc1 %s -emit-llvm -O1 -o - | FileCheck %s
|
|
// The load here was getting lost because this code was close
|
|
// enough to the traditional (wrong) implementation of offsetof
|
|
// to confuse the gcc FE. 8629268.
|
|
|
|
struct foo {
|
|
int x;
|
|
int *y;
|
|
};
|
|
|
|
struct foo Foo[1];
|
|
|
|
int * bar(unsigned int ix) {
|
|
// CHECK: load
|
|
return &Foo->y[ix];
|
|
}
|