diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/nothrow-1.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/nothrow-1.C | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/nothrow-1.C b/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/nothrow-1.C new file mode 100644 index 000000000..33462946a --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/nothrow-1.C @@ -0,0 +1,22 @@ +/* { dg-do compile } */ +/* { dg-options "-O1 -fdump-tree-cfg" } */ +/* { dg-add-options bind_pic_locally } */ + +double a; +void t() +{ + a=1; +} +void t1(void); +void abort(void); + +void q() +{ + try { + t(); + } + catch (...) {abort();} +} +/* We shouldnotice nothrow attribute. */ +/* { dg-final { scan-tree-dump-times "exception" 0 "cfg"} } */ +/* { dg-final { cleanup-tree-dump "cfg" } } */ |