projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c58391a
)
cp-simplify.c (genericize_try_block): Do genericize catch blocks.
author
Jason Merrill
<jason@gcc.gnu.org>
Fri, 7 Feb 2003 18:14:56 +0000
(13:14 -0500)
committer
Jason Merrill
<jason@gcc.gnu.org>
Fri, 7 Feb 2003 18:14:56 +0000
(13:14 -0500)
* cp-simplify.c (genericize_try_block): Do genericize catch blocks.
[[Split portion of a mixed commit.]]
From-SVN: r62528.2
gcc/testsuite/g++.dg/eh/loop2.C
[new file with mode: 0644]
patch
|
blob
diff --git a/gcc/testsuite/g++.dg/eh/loop2.C
b/gcc/testsuite/g++.dg/eh/loop2.C
new file mode 100644
(file)
index 0000000..
1e85fa1
--- /dev/null
+++ b/
gcc/testsuite/g++.dg/eh/loop2.C
@@ -0,0
+1,11
@@
+// Test that breaking out of a handler works.
+// { dg-do run }
+
+int main ()
+{
+ while (1)
+ {
+ try { throw 1; }
+ catch (...) { break; }
+ }
+}