vox ~master (2022-05-02T18:23:10Z)
Dub
Repo
ctfe3
tests
ctfe
Undocumented in source.
immutable
@
TestInfo
(&
tester3
)
auto
ctfe3
=
q{
---
ctfe3
// add
i32
func
(
i32
param
) {
return
param
+
param
; }
enum
i32
val
=
func
(
42
);
// CTFE
i32
run
() {
return
val
;
// returns 84
}
}
;
Meta
Source
See Source File
tests
ctfe
functions
ctfeTests
tester1
tester2
tester3
tester4
tester5
tester6
variables
ctfe1
ctfe2
ctfe3
ctfe4
ctfe5
ctfe6