* [PATCH] Testcase for PR46364
@ 2011-04-18 14:39 Richard Guenther
0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2011-04-18 14:39 UTC (permalink / raw)
To: gcc-patches
Committed to trunk and the 4.6 branch.
Richard.
2011-04-18 Richard Guenther <rguenther@suse.de>
PR middle-end/46364
* g++.dg/torture/pr46364.C: New testcase.
Index: gcc/testsuite/g++.dg/torture/pr46364.C
===================================================================
--- gcc/testsuite/g++.dg/torture/pr46364.C (revision 0)
+++ gcc/testsuite/g++.dg/torture/pr46364.C (revision 0)
@@ -0,0 +1,20 @@
+// { dg-do compile }
+#include <string>
+
+void a() throw (int);
+void b(std::string const &);
+
+void c(std::string *e)
+{
+ b("");
+
+ try {
+ a();
+ } catch (...) {
+ *e = "";
+ }
+}
+
+void d() {
+ c(0);
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-18 14:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-18 14:39 [PATCH] Testcase for PR46364 Richard Guenther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).