aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr102796.C
blob: 6ad1008922fd29b2dc2f0399751996d1c64e1eb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do compile }
// { dg-options "-O3 -fno-tree-ccp -fno-tree-fre -fno-tree-forwprop -std=c++17" }

namespace std {
template <class _E>
struct initializer_list {
  const int* __begin_;
  decltype(sizeof(int)) __size_;
};
}  // namespace std
struct destroyme1 {};
struct witharg1 {
  witharg1(const destroyme1&);
  ~witharg1();
};
std::initializer_list globalInitList2 = {witharg1(destroyme1()),
                                         witharg1(destroyme1())};