Bochs/bochs-testing/plugin-test/test3-twomodules/uselib.cc
Bryce Denney 837d985b19 - call exit(77) for success. 77 was chosen arbitrarily; it is unlikely that a
malfunctional program could return this code by accident.
2002-10-16 04:07:58 +00:00

18 lines
409 B
C++

#include <stdio.h>
#include "module1.h"
#include "module2.h"
int main ()
{
printf ("start\n");
printf ("at first, n_operations = %d\n", n_operations);
printf ("Module name is '%s'\n", module_name);
int a=5, b=12;
int c = operate (a, b);
operation_occurred ();
printf ("operate(%d,%d) = %d\n", a, b, c);
printf ("stop\n");
printf ("at end, n_operations = %d\n", n_operations);
exit(77);
}