]> code.ossystems Code Review - openembedded-core.git/blob
a14ee29f304a4ffc130d7552af57f06654982d85
[openembedded-core.git] /
1 Upstream-Status: Inappropriate [Backport]
2 From 68e7b8b6643a4c50a8527610dbf5a7ab36cc8f24 Mon Sep 17 00:00:00 2001
3 From: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
4 Date: Mon, 18 Apr 2011 14:25:57 +0000
5 Subject: [PATCH 139/200] 2011-04-18  Richard Guenther  <rguenther@suse.de>
6
7         PR middle-end/46364
8         * g++.dg/torture/pr46364.C: New testcase.
9
10
11 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172650 138bc75d-0d04-0410-961f-82ee72b054a4
12
13 new file mode 100644
14 index 0000000..8098991
15 --- /dev/null
16 +++ b/gcc/testsuite/g++.dg/torture/pr46364.C
17 @@ -0,0 +1,20 @@
18 +// { dg-do compile }
19 +#include <string>
20 +
21 +void a() throw (int);
22 +void b(std::string const &);
23 +
24 +void c(std::string *e)
25 +{
26 +  b("");
27 +
28 +  try {
29 +      a();
30 +  } catch (...) {
31 +      *e = "";
32 +  }
33 +}
34 +
35 +void d() {
36 +    c(0);
37 +}
38 -- 
39 1.7.0.4
40