Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
llvm
/
fea1dd08044c85fb2f74b409704bb742dc817846
/
.
/
test
/
FrontendC
/
2005-03-05-OffsetOfHack.c
blob: 8df7231df6aced1769b7add0077bf71173797f0b [
file
] [
log
] [
blame
]
Chris Lattner
60fbe9b
2005-03-05 18:47:28 +0000
[
diff
] [
blame
]
1
// RUN: %llvmgcc %s -S -o -
2
3
struct
s
{
4
unsigned
long
int
field
[
0
];
5
};
6
7
#define
OFFS \
8
(((
char
*)
&((
struct
s
*)
0
)->
field
[
0
])
-
(
char
*)
0
)
9
10
int
foo
[
OFFS
];
11
12