You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
339 B

#include <stdio.h>
int foo();
#ifdef WITH_ZOOM
int zoom();
#endif
class A
{
public:
A()
{
this->i = foo();
#ifdef WITH_ZOOM
i += zoom();
i -= zoom();
#endif
}
int i;
};
int main(void)
{
A a;
if (a.i == 21) {
printf("passed foo is 21\n");
return 0;
}
printf("Failed foo is not 21\n");
return -1;
}