view gcc/testsuite/gcc.dg/gimplefe-44.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-fexceptions -fgimple -fdump-tree-eh-eh" } */

void __GIMPLE foo()
{
  try
    {
      try
	{
	  extern void might_throw1 ();
	  might_throw1 ();
	}
      finally
	{
	  extern void might_throw2 ();
	  might_throw2 ();
	}
      else
	{
	  extern void might_throw3 ();
	  might_throw3 ();
	}
    }
  finally
    {
      extern void might_throw4 ();
      might_throw4 ();
    }
}

/* { dg-final { scan-tree-dump ".LP 1. might_throw1" "eh" } } */
/* { dg-final { scan-tree-dump ".LP 2. might_throw2" "eh" } } */
/* { dg-final { scan-tree-dump ".LP 2. might_throw3" "eh" } } */