mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
18 lines
302 B
C#
18 lines
302 B
C#
using System;
|
|
|
|
namespace ConstantForCondition
|
|
{
|
|
class Main
|
|
{
|
|
public void M()
|
|
{
|
|
for (int i = 0; false; i++) // GOOD
|
|
;
|
|
for (int i = 0; 0 == 1; i++) // BAD
|
|
;
|
|
for (; ; ) // GOOD
|
|
;
|
|
}
|
|
}
|
|
}
|