mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
C#: Add enum init value test
This commit is contained in:
0
csharp/ql/test/library-tests/enums/Enums11.expected
Normal file
0
csharp/ql/test/library-tests/enums/Enums11.expected
Normal file
9
csharp/ql/test/library-tests/enums/Enums11.ql
Normal file
9
csharp/ql/test/library-tests/enums/Enums11.ql
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @name Test for enums
|
||||
*/
|
||||
|
||||
import csharp
|
||||
|
||||
from FieldAccess fa
|
||||
where fa.getParent().(Field).getDeclaringType() instanceof Enum
|
||||
select fa, fa.getValue()
|
||||
Reference in New Issue
Block a user