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