summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/MocOsMacros/main.cpp
blob: c427345be4ac0013cf5afaec2555f7c26bbc8bff (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
33
#include <QtGlobal>

#include "TestClass.hpp"

int main()
{
  TestClass a;
#ifdef Q_OS_MAC
  a.MacNotDefElse();
  a.MacDef();
#else
  a.MacNotDef();
  a.MacDefElse();
#endif

#ifdef Q_OS_UNIX
  a.UnixNotDefElse();
  a.UnixDef();
#else
  a.UnixNotDef();
  a.UnixDefElse();
#endif

#ifdef Q_OS_WIN
  a.WindowsNotDefElse();
  a.WindowsDef();
#else
  a.WindowsNotDef();
  a.WindowsDefElse();
#endif

  return 0;
}