gcc/testsuite/g++.dg/pr71973-3.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-Wall -fdump-tree-eh" } |
| 3 | |
| 4 | extern "C" |
| 5 | int execve (const char *__path, char *const __argv[], char *const __envp[]) |
| 6 | __attribute__ ((__nothrow__)); |
| 7 | |
| 8 | void foo () throw () |
| 9 | { |
| 10 | execve (0,0,0); |
| 11 | } |
| 12 | |
| 13 | // { dg-final { scan-tree-dump-not "eh_dispatch" "eh" } } |
| 14 | // { dg-final { scan-tree-dump-not "resx" "eh" } } |