blob: 998ce6017673a3b2ce0ca4f6cd67b2cdac65b7b9 [file] [log] [blame]
/* PR c++/94314. */
/* { dg-do run } */
/* { dg-options "-O2 -fdump-tree-cddce-details -fdelete-null-pointer-checks" } */
struct A
{
__attribute__((always_inline)) A(int x)
{
if (x == 123)
throw x;
}
};
int
main(int argc, char **argv)
{
A *a = new A (argc);
delete a;
return 0;
}
/* { dg-final { scan-tree-dump-times "Deleting : operator delete" 2 "cddce1"} } */