Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/torture/pr34241.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* { dg-do compile } */ inline void *operator new (__SIZE_TYPE__, void *__p) throw () { return __p; } struct A { A(int, double); inline explicit A (int pattern, bool cs) { new (this) A (pattern, double(cs)); } }; A test () { const A a (42, true); return a; }