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