#include "newClass.h" #include "old.h" #include int main(int argc, char **argv) { /* The default case. * A standard class compiled with the new compiler */ newClass x; x.newadd(42); x.newadd(11); x.newadd(192); /* Now a call to a C function which has been compiled * with an incompatible compiler version! */ proxy(5); proxy(10); /* Now we check if the other side really stored what they got */ std::cout << result(); // bye bye return 0; }