1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/test/compiler/ttei2.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,31 @@
1.4 +/*
1.5 + * It is known that this code not compiled by following compilers:
1.6 + *
1.7 + * It is known that this code compiled by following compilers:
1.8 + * gcc 2.95.3
1.9 + * gcc 3.3.3
1.10 + * gcc 3.4.1
1.11 + * MSVC 6
1.12 + * MSVC 8
1.13 + */
1.14 +
1.15 +struct A
1.16 +{
1.17 + private:
1.18 + struct B
1.19 + {
1.20 + template <typename T>
1.21 + static void f( T& ) {}
1.22 +
1.23 + template <bool V>
1.24 + struct C
1.25 + {
1.26 + };
1.27 + };
1.28 +};
1.29 +
1.30 +template <>
1.31 +struct A::B::C<true>
1.32 +{
1.33 +};
1.34 +