diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2018-07-22 17:02:39 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2018-07-30 07:46:03 (GMT) |
commit | 7bb70054e443813dfc21d1b4acc0e719b40f55d8 (patch) | |
tree | 47c942a281aea3f112ad72129891fa76a1abd040 /Tests/QtAutogen/MocOsMacros/main.cpp | |
parent | f3451358456dc10169f56bfbd2de7d311df1eef3 (diff) | |
download | CMake-7bb70054e443813dfc21d1b4acc0e719b40f55d8.zip CMake-7bb70054e443813dfc21d1b4acc0e719b40f55d8.tar.gz CMake-7bb70054e443813dfc21d1b4acc0e719b40f55d8.tar.bz2 |
Autogen: Add test for Q_OS_ macros
Diffstat (limited to 'Tests/QtAutogen/MocOsMacros/main.cpp')
-rw-r--r-- | Tests/QtAutogen/MocOsMacros/main.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Tests/QtAutogen/MocOsMacros/main.cpp b/Tests/QtAutogen/MocOsMacros/main.cpp new file mode 100644 index 0000000..f8eec3c --- /dev/null +++ b/Tests/QtAutogen/MocOsMacros/main.cpp @@ -0,0 +1,32 @@ +#include "TestClass.hpp" +#include <QtGlobal> + +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; +} |