| 1 | // RUN: not clang-tidy %s -checks=-*,modernize-loop-convert -- |
|---|---|
| 2 | |
| 3 | // Note: this test expects no assert failure happened in clang-tidy. |
| 4 | |
| 5 | class LinguisticItem { |
| 6 | LinguisticItem *x0; |
| 7 | class x1 { |
| 8 | bool operator!= ( const x1 &; |
| 9 | operator* ( ; |
| 10 | LinguisticItem * &operator-> ( ; |
| 11 | operator++ ( |
| 12 | } begin() const; |
| 13 | x1 end() const { |
| 14 | LinguisticStream x2; |
| 15 | for (x1 x3 = x2.begin x3 != x2.end; ++x3) |
| 16 | x3->x0 |
| 17 | } |
| 18 | }; |
| 19 |
