Debian Codegraph @

Tests/OutOfSource/OutOfSourceSubdir/simple.cxx

raw
1 #include <stdio.h>
2 #include <string.h>
3
4 #include "testdp.h"
5 #include "testlib.h"
6
7 extern int simple();
8 #ifndef NO_DEEPSRC
9 extern int simple2();
10 #endif
11 extern "C" int outlib();
12
13 int main()
14 {
15 if (simple() != 123) {
16 return -3;
17 }
18 if (strcmp(animal, "SIZZLING")) {
19 fprintf(stderr, "Get definitions from a subdir did not work\n");
20 return -2;
21 }
22 if (TestLib() != 1.0) {
23 return -1;
24 }
25 if (outlib() != 456) {
26 return -4;
27 }
28 #ifndef NO_DEEPSRC
29 if (simple2() != 789) {
30 return -5;
31 }
32 #endif
33 return 0;
34 }