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
PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git]
/
test
/
FrontendC
/
2002-04-10-StructParameters.c
blob
9db6a132bc1e16aef49c2346d905dbcaea873673
1
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
3
4
typedef
struct
{
5
char
p
;
6
short
q
;
7
char
r
;
8
int
X
;
9
short
Y
,
Z
;
10
int
Q
;
11
}
foo
;
12
13
int
test
(
foo X
,
float
);
14
int
testE
(
char
,
short
,
char
,
int
,
int
,
float
);
15
void
test3
(
foo
*
X
) {
16
X
->
q
=
1
;
17
}
18
19
void
test2
(
foo Y
) {
20
testE
(
Y
.
p
,
Y
.
q
,
Y
.
r
,
Y
.
X
,
Y
.
Y
,
0.1
f
);
21
test
(
Y
,
0.1
f
);
22
test2
(
Y
);
23
test3
(&
Y
);
24
}
25