repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- Make BranchProbability constructor public.
[llvm/stm8.git]
/
test
/
FrontendC
/
arrayderef.c
blob
66c2e0ba41653a539ad1d289761802d4d8d100a4
1
// RUN: %llvmgcc %s -S -O -o - | FileCheck %s
2
// The load here was getting lost because this code was close
3
// enough to the traditional (wrong) implementation of offsetof
4
// to confuse the gcc FE. 8629268.
5
6
struct
foo
{
7
int
x
;
8
int
*
y
;
9
};
10
11
struct
foo Foo
[
1
];
12
13
int
*
bar
(
unsigned int
ix
) {
14
// CHECK: load
15
return
&
Foo
->
y
[
ix
];
16
}
17