4 * This program checks if the compiler / platform supports the
5 * std::list container. The motivation for this test was a discussion
6 * on the development mailing list, and the documentation was captured
9 * http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=3715
12 #include "test_config.h"
14 // The first part of the test is to compile this line. If the program
15 // does not compile the platform is just too broken.
20 run_main (int, ACE_TCHAR
*[])
22 ACE_START_TEST (ACE_TEXT("Compiler_Features_01_Test"));
24 // As usual, the exit status from the test is 0 on success, 1 on
28 // Create a simple list ...
29 using collection
= std::list
<int>;
32 // ... insert some elements ...
39 // ... add all the numbers to validate that they are there ...
41 for(collection::iterator i
= c
.begin(), end
= c
.end();
48 // ... remember Euler ...
49 int const expected
= 5*(5+1)/2;
53 ACE_ERROR ((LM_ERROR
, ACE_TEXT("Expected %d got %d\n"),