On 4/14/20 10:37 AM, Jakub Jelinek wrote: > On Tue, Apr 14, 2020 at 09:11:37AM +0200, Martin Liška wrote: >> +/* PR c++/94314. */ >> +/* { dg-do run } */ >> +/* { dg-options "-O2 -fdump-tree-cddce-details -std=c++14" } */ >> +/* { dg-additional-options "-fdelete-null-pointer-checks" } */ > > Any reason why you want to do it for -std=c++14 only? I need at least -std=c++11 for the noexcept keyword. I updated that. > Wouldn't > // PR c++/94314 > // { dg-do run { target c++14 } } > // { dg-options "-O2 -fdelete-null-pointer-checks -fdump-tree-cddce-details" } > be better (and no need for dg-additional-options if you have dg-options > already and don't have some effective target on it). Sure, removed that. > >> + >> +#include > > What do you need stdio.h for? Likewise here (also for other test-cases). > > Otherwise, LGTM, but please give the C++ maintainers time to comment. Sure. Martin > > Jakub >