Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / ACE / tests / Compiler_Features_18_Test.cpp
blob88ebdb2ab6a73c1ae2539bb40bfae2061f33c416
1 /**
2 * This program checks if the compiler / platform supports strongly
3 * array
4 */
6 #include "test_config.h"
8 #if defined (ACE_HAS_CPP11)
10 #include <array>
11 namespace Test
13 typedef std::array< float, 5 > arrayType;
14 typedef std::array< arrayType, 5 > array_array;
17 int
18 run_main (int, ACE_TCHAR *[])
20 ACE_START_TEST (ACE_TEXT("Compiler_Features_18_Test"));
22 Test::array_array v_in = { { Test::arrayType {
23 { 1.0, 2.0, 3.0, 4.0, 5.0 } }, Test::arrayType { { 1.0, 2.0, 3.0, 4.0,
24 5.0 } }, Test::arrayType { { 1.0, 2.0, 3.0, 4.0, 5.0 } },
25 Test::arrayType { { 1.0, 2.0, 3.0, 4.0, 5.0 } }, Test::arrayType { {
26 1.0, 2.0, 3.0, 4.0, 5.0 } } } };
28 ACE_UNUSED_ARG (v_in);
30 ACE_DEBUG ((LM_INFO,
31 ACE_TEXT ("Std arrays work.\n")));
33 ACE_END_TEST;
35 return 0;
38 #else
39 int
40 run_main (int, ACE_TCHAR *[])
42 ACE_START_TEST (ACE_TEXT("Compiler_Features_18_Test"));
44 ACE_DEBUG ((LM_INFO,
45 ACE_TEXT ("No C++11 support enabled\n")));
47 ACE_END_TEST;
48 return 0;
51 #endif