diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2013-02-11 22:20:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-02-19 19:44:57 (GMT) |
commit | 674bd6e7788f9e6ff35c0082c9c85e9aa83b642d (patch) | |
tree | 59d9ba014199e9b7252cee9f170c60768ed5bd25 /Source/kwsys/kwsysPlatformTestsCXX.cxx | |
parent | 4760eade425e8e294ac9400785ffce70912d5b43 (diff) | |
parent | 3e7bba3fb2d431b512181e99c6333e9dfdc8a9fd (diff) | |
download | CMake-674bd6e7788f9e6ff35c0082c9c85e9aa83b642d.zip CMake-674bd6e7788f9e6ff35c0082c9c85e9aa83b642d.tar.gz CMake-674bd6e7788f9e6ff35c0082c9c85e9aa83b642d.tar.bz2 |
Merge branch 'master' into sublime-text-2-generator
Diffstat (limited to 'Source/kwsys/kwsysPlatformTestsCXX.cxx')
-rw-r--r-- | Source/kwsys/kwsysPlatformTestsCXX.cxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformTestsCXX.cxx b/Source/kwsys/kwsysPlatformTestsCXX.cxx index ae58703..48976c4 100644 --- a/Source/kwsys/kwsysPlatformTestsCXX.cxx +++ b/Source/kwsys/kwsysPlatformTestsCXX.cxx @@ -580,3 +580,30 @@ int main() } } #endif + +#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM +int main() +{ + int a = 1; + __asm { + xor EBX, EBX; + mov a, EBX; + } + + return a; +} +#endif + +#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM_CPUID +int main() +{ + int a = 0; + __asm { + xor EAX, EAX; + cpuid; + mov a, EAX; + } + + return a; +} +#endif |