repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
inliner.d
blob
1273809b8dbf388673542fb0ab418b2ee3d65cb9
1
// REQUIRED_ARGS: -inline -O -unittest
2
3
struct
Cent
4
{
5
ulong
lo
;
6
ulong
hi
;
7
}
8
9
Cent
add
(
Cent
,
Cent
);
10
11
Cent
sub
(
Cent c1
,
Cent c2
)
12
{
13
return
add
(
c1
,
c2
);
14
}
15
16
Cent
udivmod
(
Cent c3
,
Cent c4
)
17
{
18
Cent quotient
;
19
Cent rem
=
sub
(
c3
,
c4
);
20
return
quotient
;
21
}