Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/lto/20101010-2_0.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-lto-do link } /* "WARNING: lto.exp does not support dg-additional-options" */ #pragma GCC diagnostic ignored "-Wreturn-type" 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; }