void test(bool& t) { t = true; } void main() { bool a = true; bool& b = &a; a = false; print a; print b; test(&a); print a; print b; }