view gcc/testsuite/g++.dg/eh/cleanup5.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 17907
// { dg-do compile }
// { dg-options "" }
// { dg-require-effective-target alloca }
// We lost a CLEANUP_POINT_EXPR, leading to a crash destroying temp of A.


struct String {
  ~String();
  int size() const;
};
struct CodingSystem {
  String convertOut() const;
};
void inputOpened(CodingSystem *outputCodingSystem)
{
   char filePath[outputCodingSystem->convertOut().size()];
}