2004-02-01 20:53:28 +03:00
|
|
|
#include "foo.h"
|
|
|
|
|
2006-03-04 02:44:32 +03:00
|
|
|
#ifdef STAGE_2
|
2016-05-16 17:34:04 +03:00
|
|
|
#include <foo/lib1.h>
|
|
|
|
#include <foo/lib2renamed.h>
|
|
|
|
#include <lib3.h>
|
|
|
|
#include <old/lib2.h>
|
|
|
|
#include <old/lib3.h>
|
2006-03-04 02:44:32 +03:00
|
|
|
#else
|
2016-05-16 17:34:04 +03:00
|
|
|
#include "lib1.h"
|
|
|
|
#include "lib2.h"
|
2006-03-04 02:44:32 +03:00
|
|
|
#endif
|
|
|
|
|
2004-06-28 22:40:17 +04:00
|
|
|
#include "lib4.h"
|
2004-02-01 20:53:28 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
int main()
|
2004-02-01 20:53:28 +03:00
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
if (Lib1Func() != 2.0) {
|
2004-02-01 20:53:28 +03:00
|
|
|
printf("Problem with lib1\n");
|
|
|
|
return 1;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
|
|
|
if (Lib2Func() != 1.0) {
|
2004-02-01 20:53:28 +03:00
|
|
|
printf("Problem with lib2\n");
|
|
|
|
return 1;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
|
|
|
if (Lib4Func() != 4.0) {
|
2004-06-28 22:40:17 +04:00
|
|
|
printf("Problem with lib4\n");
|
|
|
|
return 1;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2004-02-09 19:33:00 +03:00
|
|
|
printf("The value of Foo: %s\n", foo);
|
2016-05-16 17:34:04 +03:00
|
|
|
return SomeFunctionInFoo() - 5;
|
2004-02-01 20:53:28 +03:00
|
|
|
}
|