Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/torture/pr34241.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 | |
3 inline void *operator new (__SIZE_TYPE__, void *__p) throw () | |
4 { | |
5 return __p; | |
6 } | |
7 struct A | |
8 { | |
9 A(int, double); | |
10 inline explicit A (int pattern, bool cs) | |
11 { | |
12 new (this) A (pattern, double(cs)); | |
13 } | |
14 }; | |
15 A test () | |
16 { | |
17 const A a (42, true); | |
131 | 18 return a; |
111 | 19 } |