File tree Expand file tree Collapse file tree
cpp/ql/test/library-tests/c++_exceptions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11| ODASA-5692.cpp:11:18:13:3 | { ... } |
22| ODASA-5692.cpp:14:15:16:3 | { ... } |
33| ODASA-5692.cpp:14:15:16:3 | { ... } |
4+ | exceptions.cpp:44:19:46:5 | { ... } |
Original file line number Diff line number Diff line change 22| exceptions.cpp:28:20:28:20 | e | exceptions.cpp:28:23:30:9 | { ... } |
33| exceptions.cpp:32:16:32:16 | e | exceptions.cpp:32:19:34:5 | { ... } |
44| exceptions.cpp:35:16:35:16 | e | exceptions.cpp:35:19:37:5 | { ... } |
5+ | exceptions.cpp:42:18:42:18 | e | exceptions.cpp:42:21:44:5 | { ... } |
Original file line number Diff line number Diff line change 22void f1 (void ) throw (int );
33void f2 (void ) throw ();
44void f3 (void );
5- void f4 (void ) {
6- return ;
7- }
8- void f5 (void ) {
9- throw 3 ;
10- }
5+ void f4 (void ) { return ; }
6+ void f5 (void ) { throw 3 ; }
117void g (void );
128void h (void );
139void i (void );
1410void j (void );
1511void k (void );
12+ void l (void );
13+ void m (void );
14+ void n (void );
15+
1616
1717void fun (void ) {
1818 try {
@@ -36,5 +36,15 @@ void fun(void) {
3636 j ();
3737 }
3838 k ();
39+
40+ try {
41+ throw 7 ;
42+ } catch (int e) {
43+ l ();
44+ } catch (...) {
45+ m ();
46+ }
47+ n ();
48+
3949 return ;
4050}
You can’t perform that action at this time.
0 commit comments