commit
bba5c8a39a
109 files changed
+14085
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// Object B: calls add() and square() defined in math_a.c.
|
||||
// Tests cross-object PLT32 → PC32 resolution in the merger.
|
||||
|
||||
extern int add(int, int);
|
||||
extern int square(int);
|
||||
|
||||
int add_and_double(int a, int b) {
|
||||
return add(a, b) * 2;
|
||||
}
|
||||
|
||||
int sum_of_squares(int a, int b) {
|
||||
return add(square(a), square(b));
|
||||
}
|
||||
Reference in new issue
Block a user