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