brintos

brintos / llvm-project-archived public Read only

0
0
Text · 351 B · bcf4f8b Raw
13 lines · cpp
1// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-config widen-loops=true -analyzer-max-loop 2 %s2// REQUIRES: asserts3// expected-no-diagnostics4//5// This test checks that the loop-widening code ignores static methods.  If that is not the6// case, then an assertion will trigger.7 8class Test {9  static void foo() {10    for (;;) {}11  }12};13