repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Improve compatibility with older versions of Windows.
[llvm/msp430.git]
/
test
/
FrontendC
/
2008-08-07-GEPIntToPtr.c
blob
3ef3b66b88f8304f3dac902d016674041dafa7d3
1
// RUN: %llvmgcc -S %s -o - | grep {i8 1}
2
// PR2603
3
4
struct
A
{
5
char
num_fields
;
6
};
7
8
struct
B
{
9
char
a
,
b
[
1
];
10
};
11
12
const struct
A Foo
= {
13
(
char
*)(&( (
struct
B
*)(
16
) )->
b
[
0
]) - (
char
*)(
16
)
14
};