diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2018-02-17 20:05:27 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2018-02-17 20:05:27 +0100 |
commit | e46f45e6a00228722f3694152fcb02e79a9c1bc9 (patch) | |
tree | 570f78988f38b26ccd489e3c67d172c571625203 /ACE/tests | |
parent | d14029823bf4be658affed6c0a413b45534e5cfe (diff) | |
download | ATCD-e46f45e6a00228722f3694152fcb02e79a9c1bc9.tar.gz |
msvc7.1 and gcc 4.1.1 can't handle this test so disable this test for those compilers
Diffstat (limited to 'ACE/tests')
-rw-r--r-- | ACE/tests/Compiler_Features_38_Test.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ACE/tests/Compiler_Features_38_Test.cpp b/ACE/tests/Compiler_Features_38_Test.cpp index aae2d5a330e..83733394013 100644 --- a/ACE/tests/Compiler_Features_38_Test.cpp +++ b/ACE/tests/Compiler_Features_38_Test.cpp @@ -5,6 +5,17 @@ #include "test_config.h" +// g++ 4.1 can't handle this construct +#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 1)) +# define ACE_DISABLE_TEST +#endif + +// Visual Studio 7.1 can't handle this construct +#if (_MSC_VER == 1310) +# define ACE_DISABLE_TEST +#endif + +#if !defined (ACE_DISABLE_TEST) template <typename T> class Foo_T { @@ -22,15 +33,18 @@ struct Foo2 long i; }; typedef Foo_T<Foo2> Foo2Seq; +#endif /* !ACE_DISABLE_TEST */ int run_main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT("Compiler_Features_38_Test")); +#if !defined (ACE_DISABLE_TEST) Foo2Seq f2; long const j = f2[0].i; ACE_UNUSED_ARG(j); +#endif /* !ACE_DISABLE_TEST */ ACE_DEBUG ((LM_INFO, ACE_TEXT ("C++ support ok\n"))); |