inst.cxx 530 B

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