C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / pr102796.C
blob6ad1008922fd29b2dc2f0399751996d1c64e1eb8
1 // { dg-do compile }
2 // { dg-options "-O3 -fno-tree-ccp -fno-tree-fre -fno-tree-forwprop -std=c++17" }
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();
16 std::initializer_list globalInitList2 = {witharg1(destroyme1()),
17                                          witharg1(destroyme1())};