summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-assert-failure.cpp
blob: fab51dafd2eb94e41c318a5658fb483d256ceddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: not clang-tidy %s -checks=-*,modernize-loop-convert --

// Note: this test expects no assert failure happened in clang-tidy.

class LinguisticItem {
  LinguisticItem *x0;
  class x1 {
    bool operator!= ( const x1 &;
    operator* ( ;
    LinguisticItem * &operator-> ( ;
    operator++ (
  } begin() const;
  x1 end() const {
    LinguisticStream x2;
    for (x1 x3 = x2.begin x3 != x2.end; ++x3)
      x3->x0
  }
};
OpenPOWER on IntegriCloud