Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/pr98082.C

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