CS153/hw6/hw5programs/tc_subtyping5.oat
jmug cfe502c598 Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-24 18:59:28 -08:00

11 lines
No EOL
147 B
Text

struct A { int x }
struct B { int x ; int y }
struct C { int x ; int y }
void foo(A a, B b, C c) {
a = b;
a = c;
b = c;
c = b;
return;
}