// This file should pass if compiled/run with:
// vtest vflags: -d my_f64=2.0 -d my_i64=3 -d my_string="a four" -d my_bool -d my_char=g -d my_size=8 -d field_fsa_size=16
const my_f64 = $d('my_f64', 1.0)
const my_i64 = $d('my_i64', 2)
const my_string = $d('my_string', 'three')
const my_bool = $d('my_bool', false)
const my_char = $d('my_char', `f`)

struct StructFSAWithDSize {
	fsa [$d('field_fsa_size', 10)]int
}

fn main() {
	assert my_f64 == 2.0
	assert my_i64 == 3
	assert my_string == 'a four'
	assert my_bool == true
	assert my_char == `g`
	my_fixed_size_array := [$d('my_size', 4)]int{}
	assert my_fixed_size_array.len == 8
	s := StructFSAWithDSize{}
	assert s.fsa.len == 16
	println(my_f64)
	println(my_i64)
	println(my_string)
	println(my_bool)
	println(rune(my_char))
	println(my_fixed_size_array)
}
