vox ~master (2022-05-02T18:23:10Z)
Dub
Repo
ctfe6
tests
ctfe
Undocumented in source.
immutable
@
TestInfo
(&
tester6
)
auto
ctfe6
=
q{
---
ctfe6
i64
fib
(
i64
number
) {
i64
lo
=
0
;
i64
hi
=
1
;
for
(
i64
i
=
0
;
i
<
number
; ++
i
) {
hi
=
hi
+
lo
;
lo
=
hi
-
lo
; }
return
lo
; }
enum
i64
val
=
fib
(
62
);
// CTFE
i64
get
() {
return
val
; }
}
;
Meta
Source
See Source File
tests
ctfe
functions
ctfeTests
tester1
tester2
tester3
tester4
tester5
tester6
variables
ctfe1
ctfe2
ctfe3
ctfe4
ctfe5
ctfe6