Debian Codegraph @

gcc/testsuite/g++.dg/eh/cleanup5.C

raw
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 }