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