diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/eh/cleanup5.C')
-rw-r--r-- | gcc/testsuite/g++.dg/eh/cleanup5.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/eh/cleanup5.C b/gcc/testsuite/g++.dg/eh/cleanup5.C new file mode 100644 index 000000000..e74d06793 --- /dev/null +++ b/gcc/testsuite/g++.dg/eh/cleanup5.C @@ -0,0 +1,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()]; +} |