diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2018-03-16 20:24:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 20:24:11 +0100 |
commit | 60e405501c30f87e95efcb427d201f068dbee839 (patch) | |
tree | 25f8996aaa9980a97b3dcdb834eee7234e35dcbc | |
parent | 872d325b345d222ec7659f0e1a37575842a42db0 (diff) | |
parent | 16e8495dd2f69b3c89d4fcd13b8e0c3096931c41 (diff) | |
download | ATCD-60e405501c30f87e95efcb427d201f068dbee839.tar.gz |
Merge pull request #596 from jwillemsen/jwi-comp38
Instead of using [0] a [0L] has to be used, that is the correct fix
-rw-r--r-- | ACE/tests/Compiler_Features_38_Test.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/ACE/tests/Compiler_Features_38_Test.cpp b/ACE/tests/Compiler_Features_38_Test.cpp index 73c40644253..0d6466479db 100644 --- a/ACE/tests/Compiler_Features_38_Test.cpp +++ b/ACE/tests/Compiler_Features_38_Test.cpp @@ -5,22 +5,6 @@ #include "test_config.h" -// g++ 4.1 can't handle this construct -#if defined (__GNUC__) && (__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 - -// Sun Studio 5.13 and older can't handle this construct -#if defined (__SUNPRO_CC) && (__SUNPRO_CC <= 0x5130) -# define ACE_DISABLE_TEST -#endif - -#if !defined (ACE_DISABLE_TEST) template <typename T> class Foo_T { @@ -38,21 +22,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; + long const j = f2[0L].i; ACE_UNUSED_ARG(j); ACE_DEBUG ((LM_INFO, ACE_TEXT ("C++ support ok\n"))); -#endif /* !ACE_DISABLE_TEST */ ACE_END_TEST; |