summaryrefslogtreecommitdiffstats
path: root/Tests/SetLang/bar.c
blob: f59c318b181d85165828ad14fb3be83b8be4f6e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

int foo();
class A
{
public:
  A() {this->i = foo();}
  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;
}