gcc/testsuite/g++.dg/pr71973-1.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-Wall -fdump-tree-eh" } |
| 3 | |
| 4 | extern "C" |
| 5 | void fork () // { dg-warning "conflicts with built-in declaration" } |
| 6 | __attribute__ ((__nothrow__)); |
| 7 | |
| 8 | void foo () throw () |
| 9 | { |
| 10 | fork (); |
| 11 | } |
| 12 | |
| 13 | // { dg-final { scan-tree-dump-not "eh_dispatch" "eh" } } |
| 14 | // { dg-final { scan-tree-dump-not "resx" "eh" } } |