| 1 |
// PR c++/118124 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-options "-O2" } |
| 4 |
|
| 5 |
namespace std { |
| 6 |
template <class T> struct initializer_list { |
| 7 |
private: |
| 8 |
const T *_M_array; |
| 9 |
__SIZE_TYPE__ _M_len; |
| 10 |
}; |
| 11 |
} |
| 12 |
struct A { |
| 13 |
A (std::initializer_list<char>); |
| 14 |
}; |
| 15 |
A a { |
| 16 |
#embed __FILE__ |
| 17 |
}; |
| 18 |
struct B { |
| 19 |
B (std::initializer_list<unsigned char>); |
| 20 |
}; |
| 21 |
B b { |
| 22 |
#embed __FILE__ |
| 23 |
}; |
| 24 |
struct C { |
| 25 |
C (std::initializer_list<int>); |
| 26 |
}; |
| 27 |
C c { |
| 28 |
#embed __FILE__ |
| 29 |
}; |
| 30 |
struct D { |
| 31 |
D (std::initializer_list<float>); |
| 32 |
}; |
| 33 |
D d { |
| 34 |
#embed __FILE__ |
| 35 |
}; |