Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr34241.C
blob70f186c5b9fd401f27b86677d47f2925f2f5dbc2
1 /* { dg-do compile } */
3 inline void *operator  new (__SIZE_TYPE__, void *__p) throw ()
5   return __p;
7 struct A
9   A(int, double);
10   inline explicit A (int pattern, bool cs)
11   {
12     new (this) A (pattern, double(cs));
13   }
15 A test ()
17   const A a (42, true);