repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Support very basic (doesn't include ABI support in the front-end, varags, ...) 256...
[llvm.git]
/
test
/
FrontendC
/
2005-10-18-VariableSizedElementCrash.c
blob
b9166621db4a86f66aa16cc5d47f2fd7cf7a262b
1
// RUN: %llvmgcc %s -S -o -
2
3
int
sub1
(
int
i
,
char
*
pi
) {
4
typedef
int
foo
[
i
];
5
struct
bar
{
foo f1
;
int
f2
:
3
;
int
f3
:
4
;} *
p
= (
struct
bar
*)
pi
;
6
xxx
(
p
->
f1
);
7
return
p
->
f3
;
8
}
9