simple.cxx 532 B

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