aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/eh/cleanup5.C
blob: e74d06793ae498e45a6f26c0f7d3427711507c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR 17907
// { dg-do compile }
// { dg-options "" }
// 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()];
}