diff --git a/csharp/ql/test/query-tests/Useless Code/IntGetHashCode/IntGetHashCode.cs b/csharp/ql/test/query-tests/Useless Code/IntGetHashCode/IntGetHashCode.cs index 80b0ed180fc..ae8d93ef468 100644 --- a/csharp/ql/test/query-tests/Useless Code/IntGetHashCode/IntGetHashCode.cs +++ b/csharp/ql/test/query-tests/Useless Code/IntGetHashCode/IntGetHashCode.cs @@ -3,14 +3,14 @@ class IntGetHashCode void Test() { // These are all bad: - default(uint).GetHashCode(); - default(int).GetHashCode(); - default(long).GetHashCode(); - default(ulong).GetHashCode(); - default(short).GetHashCode(); - default(ushort).GetHashCode(); - default(byte).GetHashCode(); - default(sbyte).GetHashCode(); + default(uint).GetHashCode(); // $ Alert + default(int).GetHashCode(); // $ Alert + default(long).GetHashCode(); // $ Alert + default(ulong).GetHashCode(); // $ Alert + default(short).GetHashCode(); // $ Alert + default(ushort).GetHashCode(); // $ Alert + default(byte).GetHashCode(); // $ Alert + default(sbyte).GetHashCode(); // $ Alert // These are all good: default(double).GetHashCode(); diff --git a/csharp/ql/test/query-tests/Useless Code/IntGetHashCode/IntGetHashCode.qlref b/csharp/ql/test/query-tests/Useless Code/IntGetHashCode/IntGetHashCode.qlref index a2aedb41227..710cdadee82 100644 --- a/csharp/ql/test/query-tests/Useless Code/IntGetHashCode/IntGetHashCode.qlref +++ b/csharp/ql/test/query-tests/Useless Code/IntGetHashCode/IntGetHashCode.qlref @@ -1 +1,2 @@ -Useless code/IntGetHashCode.ql \ No newline at end of file +query: Useless code/IntGetHashCode.ql +postprocess: utils/test/InlineExpectationsTestQuery.ql