Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.old-deja/g++.mike/eh50.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
8 throw 42; | 8 throw 42; |
9 } | 9 } |
10 | 10 |
11 template <class T> void foo(T) throw (int) { throw "Hi"; } // { dg-warning "deprecated" "" { target c++11 } } | 11 template <class T> void foo(T) throw (int) { throw "Hi"; } // { dg-warning "deprecated" "" { target c++11 } } |
12 | 12 |
13 int | |
13 main() { | 14 main() { |
14 std::set_unexpected (my_unexpected); | 15 std::set_unexpected (my_unexpected); |
15 try { | 16 try { |
16 foo(1); | 17 foo(1); |
17 } catch (int i) { | 18 } catch (int i) { |