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