aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/PR28752/vector
blob: fc5dafae1f916def88bc7336116a42b9c8d41302 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef VECTOR
#define VECTOR
template <bool, typename> struct B;
template <typename _Tp> struct B<true, _Tp> { typedef _Tp type; };
namespace std {
template <typename> struct D {

  template <typename _Alloc2> struct F {
    static const bool value = 0;
  };

  template <typename _Alloc2>
  typename B<F<_Alloc2>::value, _Alloc2>::type _S_select(_Alloc2);
  template <typename _Alloc2>
  static
  typename B<!F<_Alloc2>::value, _Alloc2>::type _S_select(_Alloc2);
};
template <typename _Alloc>
template <typename _Alloc2>
const bool D<_Alloc>::F<_Alloc2>::value;

template <typename> class vector {
public:
  vector(int);
  vector(vector &) : vector(D<bool>::_S_select((bool)0)) {}
};
}
#endif // VECTOR