Skip to content

Commit 655f1fe

Browse files
committed
C++: Accept test changes.
1 parent 9e82ce8 commit 655f1fe

File tree

1 file changed

+3
-3
lines changed
  • cpp/ql/test/library-tests/dataflow/dataflow-tests

1 file changed

+3
-3
lines changed

cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ void test_does_not_write_source_to_dereference()
737737

738738
void sometimes_calls_sink_eq(int x, int n) {
739739
if(n == 0) {
740-
sink(x); // $ ast,ir=751:27 ast,ir=755:32 SPURIOUS: ast,ir=749:27 ast,ir=753:32
740+
sink(x); // $ ast,ir=751:27 ast,ir=755:32 SPURIOUS: ast=749:27 ast,ir=753:32 // IR spurious results because we only have call contexts of depth 1
741741
}
742742
}
743743

@@ -757,7 +757,7 @@ void test_sometimes_calls_sink_eq_1() {
757757

758758
void sometimes_calls_sink_lt(int x, int n) {
759759
if(n < 10) {
760-
sink(x); // $ ast,ir=771:27 ast,ir=775:32 SPURIOUS: ast,ir=769:27 ast,ir=773:32
760+
sink(x); // $ ast,ir=771:27 ast,ir=775:32 SPURIOUS: ast=769:27 ast,ir=773:32 // IR spurious results because we only have call contexts of depth 1
761761
}
762762
}
763763

@@ -779,7 +779,7 @@ void test_sometimes_calls_sink_lt() {
779779
void sometimes_calls_sink_switch(int x, int n) {
780780
switch(n) {
781781
case 0:
782-
sink(x); // $ ast,ir=790:31 SPURIOUS: ast,ir=788:31
782+
sink(x); // $ ast,ir=790:31 SPURIOUS: ast,ir=788:31 // IR spurious results because IRGuard don't understand switch statements.
783783
break;
784784
}
785785
}

0 commit comments

Comments
 (0)