vox ~master (2022-05-02T18:23:10Z)
Dub
Repo
ctfe1
tests
ctfe
Undocumented in source.
immutable
@
TestInfo
(&
tester1
)
auto
ctfe1
=
q{
---
ctfe1
// Simplest case
i32
func
() {
return
42
; }
enum
i32
val
=
func
();
// CTFE is performed at IR gen of `run`, `func` already has IR
i32
run
() {
return
val
;
// returns 42
}
}
;
Meta
Source
See Source File
tests
ctfe
functions
ctfeTests
tester1
tester2
tester3
tester4
tester5
tester6
variables
ctfe1
ctfe2
ctfe3
ctfe4
ctfe5
ctfe6