1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* PR middle-end/98082 */ /* Reported by Martin Liska <marxin@gcc.gnu.org> */ /* { dg-do compile { target c++20 } } */ /* { dg-options "-fipa-icf" } */ class GoodIter { public: GoodIter(); GoodIter(GoodIter &); }; GoodIter operator-(int, GoodIter) { return GoodIter(); } GoodIter operator+(int, GoodIter) { return GoodIter(); }