(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
pr71973-1.C
// { dg-do compile }
// { dg-options "-Wall -fdump-tree-eh" }

extern "C"
void fork () // { dg-warning "conflicts with built-in declaration" }
__attribute__ ((__nothrow__));

void foo () throw ()
{
  fork ();
}

// { dg-final { scan-tree-dump-not "eh_dispatch" "eh" } }
// { dg-final { scan-tree-dump-not "resx" "eh" } }