23 lines
618 B
Plaintext
23 lines
618 B
Plaintext
|
|
#include "includes/utils.rc"
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
printf("=== Nested Include Tests ===\n");
|
||
|
|
|
||
|
|
printf("Test 1: Functions from nested includes\n");
|
||
|
|
int sum = add(5, 3);
|
||
|
|
printf("add(5, 3) = %d\n", sum);
|
||
|
|
printf("PASS: Functions from first-level include work\n");
|
||
|
|
|
||
|
|
printf("Test 2: Utility functions using nested includes\n");
|
||
|
|
if (is_even(10)) {
|
||
|
|
printf("is_even(10) = true\n");
|
||
|
|
}
|
||
|
|
if (is_odd(7)) {
|
||
|
|
printf("is_odd(7) = true\n");
|
||
|
|
}
|
||
|
|
printf("PASS: Utility functions using nested includes work\n");
|
||
|
|
|
||
|
|
printf("\n=== All Nested Include Tests Completed ===\n");
|
||
|
|
return 0;
|
||
|
|
}
|