c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / pr94314-2.C
blob998ce6017673a3b2ce0ca4f6cd67b2cdac65b7b9
1 /* PR c++/94314.  */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -fdump-tree-cddce-details -fdelete-null-pointer-checks" } */
5 struct A
7   __attribute__((always_inline)) A(int x)
8   {
9     if (x == 123)
10       throw x;
11   }
14 int
15 main(int argc, char **argv)
17   A *a = new A (argc);
18   delete a;
20   return 0;
23 /* { dg-final { scan-tree-dump-times "Deleting : operator delete" 2 "cddce1"} } */