Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / tests / Compiler_Features_12_Test.cpp
blob12c7c0a30c3d888d85aaf872944e0670cc82324c
1 /**
2 * @file
4 * This program checks if the compiler / platform supports template
5 * template parameters. The motivation for this test was a discussion
6 * on the development mailing list, and the documentation was captured
7 * in:
9 * http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=3715
12 #include "test_config.h"
14 // Similar to Bug_3709_Regression_Test.cpp...
16 template<typename T>
17 struct Pair
19 T x1;
20 T x2;
23 template<typename T>
24 struct Triple
26 T t1;
27 T t2;
28 T t3;
31 template<typename T, template <typename> class Tuple>
32 struct Array
34 Tuple<T> array[5];
37 int
38 run_main (int, ACE_TCHAR *[])
40 ACE_START_TEST (ACE_TEXT("Compiler_Features_12_Test"));
42 // As usual, the exit status from the test is 0 on success, 1 on
43 // failure
44 int status = 0;
46 Array<int, Pair> pairs;
47 pairs.array[0].x1 = 0;
48 ACE_UNUSED_ARG (pairs);
50 Array<int, Triple> triples;
51 triples.array[1].t3 = 0;
52 ACE_UNUSED_ARG (triples);
54 ACE_END_TEST;
55 return status;