repo.or.cz
/
vala-gnome.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
codegen: Fix floating reference regression with Variants
[vala-gnome.git]
/
tests
/
basic-types
/
sizeof.vala
blob
931891f281c8dcea86c1487e4d09a5f3edc95601
1
2
3
public const
size_t simple_size
=
sizeof
(
int
);
4
public const
size_t composed_size
=
sizeof
(
int
) +
sizeof
(
size_t
);
5
6
static
void
main
() {
7
assert
(
composed_size
== (
sizeof
(
int
) +
sizeof
(
size_t
)));
8
assert
(
simple_size
==
sizeof
(
int
));
9
}
10
11
12