Sign in
llvm
/
llvm-test-suite
/
refs/tags/llvmorg-18.1.7
/
.
/
SingleSource
/
UnitTests
/
2002-10-12-StructureArgs.c
blob: b44004ae352eafeb9e695e166673ab8386debe28 [
file
] [
log
] [
blame
]
#include
<stdio.h>
struct
vec2
{
double
X
,
Y
;
};
void
print
(
struct
vec2 S
,
struct
vec2 T
)
{
printf
(
"%f, %f, %f, %f\n"
,
S
.
X
,
S
.
Y
,
T
.
X
,
T
.
Y
);
}
int
main
()
{
struct
vec2 U
,
V
;
U
.
X
=
.
5
;
U
.
Y
=
1.2
;
V
.
X
=
-
123.01
;
V
.
Y
=
1
/
3.0
;
print
(
U
,
V
);
return
0
;
}