Fix all tests that fail with -sanitize=return.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / nothrow-1.C
blob8bc62a1aa167c0ad81de07e3cb4ce3d192e53001
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-cfg" } */
3 /* { dg-add-options bind_pic_locally } */
5 double a;
6 void t()
8         a=1;
10 void t1(void);
11 void abort(void);
13 void q()
15         try {
16                 t();
17         }
18         catch (...) {abort();}
20 /* We shouldnotice nothrow attribute.  */
21 /* { dg-final { scan-tree-dump-times "exception" 0 "cfg"} } */