From d494b4fbdbd7dfedfed5912aa81b4c51fb9d8a7d Mon Sep 17 00:00:00 2001 From: mpolacek Date: Tue, 19 Dec 2017 11:12:35 +0000 Subject: [PATCH] PR tree-optimization/83482 * g++.dg/torture/pr83482.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255817 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/torture/pr83482.C | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 gcc/testsuite/g++.dg/torture/pr83482.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 02b45eb0078..5c61361b482 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-12-19 Marek Polacek + + PR tree-optimization/83482 + * g++.dg/torture/pr83482.C: New test. + 2017-12-19 Martin Jambor PR tree-optimization/83329 diff --git a/gcc/testsuite/g++.dg/torture/pr83482.C b/gcc/testsuite/g++.dg/torture/pr83482.C new file mode 100644 index 00000000000..5fa1ab1c152 --- /dev/null +++ b/gcc/testsuite/g++.dg/torture/pr83482.C @@ -0,0 +1,20 @@ +// PR tree-optimization/83482 +// { dg-do compile } + +int _setjmp (void **); +void *buf[64]; + +void a(); +struct b { + virtual long c() { return 0L; } + void m_fn2() { c(); } +} d; + +void e() { + d.m_fn2(); + try { + a(); + _setjmp(0); + } catch (...) { + } +} -- 2.11.4.GIT