gcc/testsuite/g++.dg/pr102796.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-O3 -fno-tree-ccp -fno-tree-fre -fno-tree-forwprop -std=c++17" } |
| 3 | |
| 4 | namespace std { |
| 5 | template <class _E> |
| 6 | struct initializer_list { |
| 7 | const int* __begin_; |
| 8 | decltype(sizeof(int)) __size_; |
| 9 | }; |
| 10 | } // namespace std |
| 11 | struct destroyme1 {}; |
| 12 | struct witharg1 { |
| 13 | witharg1(const destroyme1&); |
| 14 | ~witharg1(); |
| 15 | }; |
| 16 | std::initializer_list globalInitList2 = {witharg1(destroyme1()), |
| 17 | witharg1(destroyme1())}; |
| 18 |