re PR tree-optimization/33593 (tree-outof-ssa moves sources of non-call exceptions...
[gcc.git] / gcc / testsuite / g++.dg / tree-ssa / nothrow-1.C
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-cfg" } */
3 /* { dg-skip-if "" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
4 double a;
5 void t()
6 {
7 a=1;
8 }
9 void t1(void);
10 void abort(void);
11
12 void q()
13 {
14 try {
15 t();
16 }
17 catch (...) {abort();}
18 }
19 /* We shouldnotice nothrow attribute. */
20 /* { dg-final { scan-tree-dump-times "exception" 0 "cfg"} } */
21 /* { dg-final { cleanup-tree-dump "cfg" } } */