1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/test/compiler/ttei1.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 + * gcc 2.95.3
1.7 + * MSVC 6
1.8 + *
1.9 + * It is known that this code compiled by following compilers:
1.10 + * gcc 3.3.3
1.11 + * gcc 3.4.1
1.12 + * MSVC 8 Beta
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 + template <typename T>
1.27 + static void f( T& ) {}
1.28 + };
1.29 + };
1.30 +};
1.31 +
1.32 +template <> template <typename T>
1.33 +void A::B::C<true>::f( T& ) {}
1.34 +