aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr71973-1.C
blob: 7da0bb5e7063cee52506360a1ac51bb20b3e6bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { 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" } }