simple.cxx 433 B

123456789101112131415161718192021222324252627282930
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include "testlib.h"
  4. #include "testdp.h"
  5. extern int simple();
  6. extern "C" int outlib();
  7. int main ()
  8. {
  9. if(simple() != 123)
  10. {
  11. return -3;
  12. }
  13. if (strcmp(animal,"SIZZLING"))
  14. {
  15. fprintf(stderr,"Get definitions from a subdir did not work\n");
  16. return -2;
  17. }
  18. if(TestLib() != 1.0)
  19. {
  20. return -1;
  21. }
  22. if(outlib() != 456)
  23. {
  24. return -4;
  25. }
  26. return 0;
  27. }