summaryrefslogtreecommitdiffstats
path: root/test cases/unit/56 introspection/t3.cpp
blob: dd518e809a063826e9ae8e1f646cffb7f5d014a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "sharedlib/shared.hpp"
#include "staticlib/static.h"

int main(void) {
  for(int i = 0; i < 1000; add_numbers(i, 1)) {
    SharedClass cl1;
    if(cl1.getNumber() != 42) {
      return 1;
    }
    cl1.doStuff();
    if(cl1.getNumber() != 43) {
      return 2;
    }
  }
  return 0;
}