[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20101010-2_0.C
blob721ac015e67160016941aa7df27d0676a4c03093
1 // { dg-lto-do link }
3 /* "WARNING: lto.exp does not support dg-additional-options" */
4 #pragma GCC diagnostic ignored "-Wreturn-type"
6 typedef int size_t;
7 template < size_t _Nw > struct _Base_bitset
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   }
18 template < size_t > class bitset:
19 _Base_bitset < ((sizeof (unsigned)) + ((sizeof (unsigned)) ? : 1)) >
21 public:
22   bitset set ()
23   {
24     _M_do_set ();
25   }
28 void
29 test01 ()
31   bitset < 96 > z6;
32   z6.set ();
35 int main() { return 0; }