summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/19 advanced options/main.cpp
blob: 6a071cc21a0fe95b0a3412aa6799a058988b659b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <cmMod.hpp>
#include <cmTest.hpp>

using namespace std;

int main(void) {
  cmModClass obj("Hello");
  cout << obj.getStr() << endl;

  int v1 = obj.getInt();
  int v2 = getTestInt();
  if (v1 != ((1 + v2) * 2)) {
    cerr << "Number test failed" << endl;
    return 1;
  }
  return 0;
}