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