struct A { int t; }; void test(A t) { t.t = 8; t.t += 1; } void main() { A a; a.t = 5; test(a.t); test(a); test(a.t); }