mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 09:13:34 +00:00
Testcase for llvm-gcc 118368. 8629268.
llvm-svn: 118369
This commit is contained in:
parent
49a9710db0
commit
d48eca9b43
17
test/FrontendC/arrayderef.c
Normal file
17
test/FrontendC/arrayderef.c
Normal file
@ -0,0 +1,17 @@
|
||||
// RUN: %llvmgcc %s -S -O -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user