Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/opt/eh2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR 6764 // { dg-do run } // { dg-options "-O -fomit-frame-pointer" } extern "C" void abort (); class test { public: test * const me; test () : me(this) { } ~test () { if (me != this) abort (); } }; void x1 () { test w1; throw 1; } void x2 () { test w2; x1 (); } int main (void) { try { x2 (); } catch (...) { } return 0; }