OSDN Git Service

* g++.dg/debug/debug3.C, g++.dg/ext/visibility/noPLT.C,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / eh / cleanup5.C
1 // PR 17907
2 // { dg-do compile }
3 // { dg-options "" }
4 // We lost a CLEANUP_POINT_EXPR, leading to a crash destroying temp of A.
5
6
7 struct String {
8   ~String();
9   int size() const;
10 };
11 struct CodingSystem {
12   String convertOut() const;
13 };
14 void inputOpened(CodingSystem *outputCodingSystem)
15 {
16    char filePath[outputCodingSystem->convertOut().size()];
17 }