summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/10 header only/main.cpp
blob: 1417881ff61f343f42b203da89142f85d28ac515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include <cmMod.hpp>

using namespace std;

#define EXPECTED "Hello World compDef 42"

int main(void) {
  cmModClass obj("Hello");
  cout << obj.getStr() << endl;
  if (obj.getStr() != EXPECTED) {
    cerr << "Expected: '" << EXPECTED << "'" << endl;
    return 1;
  }
  return 0;
}