summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/loop-widening-ignore-static-methods.cpp
blob: bcf4f8b23a6064461eb403e6efe7b1cf01996c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-config widen-loops=true -analyzer-max-loop 2 %s
// REQUIRES: asserts
// expected-no-diagnostics
//
// This test checks that the loop-widening code ignores static methods.  If that is not the
// case, then an assertion will trigger.

class Test {
  static void foo() {
    for (;;) {}
  }
};
OpenPOWER on IntegriCloud