OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20101010-2_0.C] - Blame information for rev 754

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-lto-do link }
2
 
3
typedef int size_t;
4
template < size_t _Nw > struct _Base_bitset
5
{
6
  typedef unsigned _WordT;
7
  _WordT _M_w[_Nw];
8
  void _M_do_set ()
9
  {
10
    for (size_t __i;;)
11
      _M_w[__i] = static_cast < _WordT > (0);
12
  }
13
};
14
 
15
template < size_t > class bitset:
16
_Base_bitset < ((sizeof (unsigned)) + ((sizeof (unsigned)) ? : 1)) >
17
{
18
public:
19
  bitset set ()
20
  {
21
    _M_do_set ();
22
  }
23
};
24
 
25
void
26
test01 ()
27
{
28
  bitset < 96 > z6;
29
  z6.set ();
30
}
31
 
32
int main() { return 0; }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.