summaryrefslogtreecommitdiff
path: root/Tests/SetLang/bar.c
blob: 515e8c233e7fd16e6271e8f1ad0824c189c6d12d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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()
{
  A a;
  if (a.i == 21) {
    printf("passed foo is 21\n");
    return 0;
  }
  printf("Failed foo is not 21\n");
  return -1;
}