repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2005-03-06-OffsetOfStructCrash.c
blob
352a7c84ee410202cd7b36477452f4b9e3b4cbc9
1
// RUN: %clang_cc1 %s -emit-llvm -o -
2
3
struct
Y
{};
4
struct
XXX
{
5
struct
Y F
;
6
};
7
8
void
test1
(
void
) {
9
(
int
)&((
struct
XXX
*)(((
void
*)
0
)))->
F
;
10
}
11
12
void
test2
(
void
) {
13
&((
struct
XXX
*)(((
void
*)
0
)))->
F
;
14
}