35 lines
532 B
C++
Raw Normal View History

#include <stdio.h>
#include <string.h>
#include "testdp.h"
2016-07-09 11:21:54 +02:00
#include "testlib.h"
extern int simple();
#ifndef NO_DEEPSRC
extern int simple2();
#endif
extern "C" int outlib();
2016-07-09 11:21:54 +02:00
int main()
{
2016-07-09 11:21:54 +02:00
if (simple() != 123) {
return -3;
2016-07-09 11:21:54 +02:00
}
if (strcmp(animal, "SIZZLING")) {
fprintf(stderr, "Get definitions from a subdir did not work\n");
return -2;
2016-07-09 11:21:54 +02:00
}
if (TestLib() != 1.0) {
return -1;
2016-07-09 11:21:54 +02:00
}
if (outlib() != 456) {
return -4;
2016-07-09 11:21:54 +02:00
}
#ifndef NO_DEEPSRC
2016-07-09 11:21:54 +02:00
if (simple2() != 789) {
return -5;
2016-07-09 11:21:54 +02:00
}
#endif
return 0;
}