aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/g++.dg/lto/20101010-2_0.C
blob: c68bcd632384fc526a7c3293eb2214aa7af48f9e (plain)
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
29
30
31
32
// { dg-lto-do link }

typedef int size_t;
template < size_t _Nw > struct _Base_bitset
{
  typedef unsigned _WordT;
  _WordT _M_w[_Nw];
  void _M_do_set ()
  {
    for (size_t __i;;)
      _M_w[__i] = static_cast < _WordT > (0);
  }
};

template < size_t > class bitset:
_Base_bitset < ((sizeof (unsigned)) + ((sizeof (unsigned)) ? : 1)) >
{
public:
  bitset set ()
  {
    _M_do_set ();
  }
};

void
test01 ()
{
  bitset < 96 > z6;
  z6.set ();
}

int main() { return 0; }