2005-09-13 18:40:38 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "testdp.h"
|
2016-04-29 17:53:13 +03:00
|
|
|
#include "testlib.h"
|
2005-07-14 20:21:49 +04:00
|
|
|
|
2006-07-07 17:54:29 +04:00
|
|
|
extern int simple();
|
2007-03-21 14:16:32 +03:00
|
|
|
#ifndef NO_DEEPSRC
|
2007-03-16 17:34:25 +03:00
|
|
|
extern int simple2();
|
2007-03-21 14:16:32 +03:00
|
|
|
#endif
|
2006-10-10 05:25:58 +04:00
|
|
|
extern "C" int outlib();
|
2006-07-07 17:54:29 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
int main()
|
2006-07-07 17:54:29 +04:00
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
if (simple() != 123) {
|
2006-07-07 17:54:29 +04:00
|
|
|
return -3;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
|
|
|
if (strcmp(animal, "SIZZLING")) {
|
|
|
|
fprintf(stderr, "Get definitions from a subdir did not work\n");
|
2005-09-13 18:40:38 +04:00
|
|
|
return -2;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
|
|
|
if (TestLib() != 1.0) {
|
2005-07-14 20:21:49 +04:00
|
|
|
return -1;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
|
|
|
if (outlib() != 456) {
|
2006-10-10 05:25:58 +04:00
|
|
|
return -4;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2007-03-21 14:16:32 +03:00
|
|
|
#ifndef NO_DEEPSRC
|
2016-05-16 17:34:04 +03:00
|
|
|
if (simple2() != 789) {
|
2007-03-16 17:34:25 +03:00
|
|
|
return -5;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2007-03-21 14:16:32 +03:00
|
|
|
#endif
|
2005-03-14 19:26:32 +03:00
|
|
|
return 0;
|
|
|
|
}
|