inst.cxx 446 B

12345678910111213141516171819202122232425262728
  1. #include "foo.h"
  2. #include "lib1.h"
  3. #include "lib2.h"
  4. #include "lib4.h"
  5. #include <stdio.h>
  6. int main ()
  7. {
  8. if ( Lib1Func() != 2.0 )
  9. {
  10. printf("Problem with lib1\n");
  11. return 1;
  12. }
  13. if ( Lib2Func() != 1.0 )
  14. {
  15. printf("Problem with lib2\n");
  16. return 1;
  17. }
  18. if ( Lib4Func() != 4.0 )
  19. {
  20. printf("Problem with lib4\n");
  21. return 1;
  22. }
  23. printf("The value of Foo: %s\n", foo);
  24. return SomeFunctionInFoo()-5;
  25. }