view gcc/testsuite/g++.dg/pr94314-2.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* 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"} } */