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