Files
codeql/csharp/ql/test/library-tests/enums/Enums8.ql
2023-11-10 08:46:15 +01:00

16 lines
322 B
Plaintext

/**
* @name Test for enums
*/
import csharp
from EnumConstant c
where
c.getName() = "Red" and
c.getDeclaringType().hasFullyQualifiedName("Enums", "SparseColor") and
c.getType() = c.getDeclaringType() and
c.getValue() = "0" and
c.getUnderlyingType() instanceof IntType and
not c.hasExplicitValue()
select c