| 1 |
// { dg-lto-do link } |
| 2 |
|
| 3 |
/* "WARNING: lto.exp does not support dg-additional-options" */ |
| 4 |
#pragma GCC diagnostic ignored "-Wreturn-type" |
| 5 |
|
| 6 |
typedef int size_t; |
| 7 |
template < size_t _Nw > struct _Base_bitset |
| 8 |
{ |
| 9 |
typedef unsigned _WordT; |
| 10 |
_WordT _M_w[_Nw]; |
| 11 |
void _M_do_set () |
| 12 |
{ |
| 13 |
for (size_t __i;;) |
| 14 |
_M_w[__i] = static_cast < _WordT > (0); |
| 15 |
} |
| 16 |
}; |
| 17 |
|
| 18 |
template < size_t > class bitset: |
| 19 |
_Base_bitset < ((sizeof (unsigned)) + ((sizeof (unsigned)) ? : 1)) > |
| 20 |
{ |
| 21 |
public: |
| 22 |
bitset set () |
| 23 |
{ |
| 24 |
_M_do_set (); |
| 25 |
} |
| 26 |
}; |
| 27 |
|
| 28 |
void |
| 29 |
test01 () |
| 30 |
{ |
| 31 |
bitset < 96 > z6; |
| 32 |
z6.set (); |
| 33 |
} |
| 34 |
|
| 35 |
int main() { return 0; } |