2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / eh / cleanup5.C
blob79aa32100b9ea126549d1db7495bd973018da0e5
1 // PR 17907
2 // { dg-do compile }
3 // { dg-options "" }
4 // { dg-require-effective-target alloca }
5 // We lost a CLEANUP_POINT_EXPR, leading to a crash destroying temp of A.
8 struct String {
9   ~String();
10   int size() const;
12 struct CodingSystem {
13   String convertOut() const;
15 void inputOpened(CodingSystem *outputCodingSystem)
17    char filePath[outputCodingSystem->convertOut().size()];