os/ossrv/genericopenlibs/cppstdlib/stl/test/compiler/ttei2.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
 * It is known that this code not compiled by following compilers:
sl@0
     3
 *
sl@0
     4
 * It is known that this code compiled by following compilers:
sl@0
     5
 *   gcc 2.95.3
sl@0
     6
 *   gcc 3.3.3
sl@0
     7
 *   gcc 3.4.1
sl@0
     8
 *   MSVC 6
sl@0
     9
 *   MSVC 8
sl@0
    10
 */
sl@0
    11
sl@0
    12
struct A
sl@0
    13
{
sl@0
    14
  private:
sl@0
    15
    struct B
sl@0
    16
    {
sl@0
    17
        template <typename T>
sl@0
    18
        static void f( T& ) {}
sl@0
    19
sl@0
    20
        template <bool V>
sl@0
    21
        struct C
sl@0
    22
        {
sl@0
    23
        };
sl@0
    24
    };
sl@0
    25
};
sl@0
    26
sl@0
    27
template <>
sl@0
    28
struct A::B::C<true>
sl@0
    29
{
sl@0
    30
};
sl@0
    31