2008-10-12 18:41:06 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int foo();
|
2021-09-14 00:13:48 +02:00
|
|
|
|
|
|
|
#ifdef WITH_ZOOM
|
|
|
|
int zoom();
|
|
|
|
#endif
|
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
class A
|
|
|
|
{
|
|
|
|
public:
|
2021-09-14 00:13:48 +02:00
|
|
|
A()
|
|
|
|
{
|
|
|
|
this->i = foo();
|
|
|
|
#ifdef WITH_ZOOM
|
|
|
|
i += zoom();
|
|
|
|
i -= zoom();
|
|
|
|
#endif
|
|
|
|
}
|
2008-10-12 18:41:06 +02:00
|
|
|
int i;
|
|
|
|
};
|
|
|
|
|
2024-04-14 22:45:38 +02:00
|
|
|
int main(void)
|
2008-10-12 18:41:06 +02:00
|
|
|
{
|
|
|
|
A a;
|
2016-07-09 11:21:54 +02:00
|
|
|
if (a.i == 21) {
|
2008-10-12 18:41:06 +02:00
|
|
|
printf("passed foo is 21\n");
|
|
|
|
return 0;
|
2016-07-09 11:21:54 +02:00
|
|
|
}
|
2008-10-12 18:41:06 +02:00
|
|
|
printf("Failed foo is not 21\n");
|
|
|
|
return -1;
|
|
|
|
}
|