mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
C++: Fix test annotation
This commit is contained in:
@@ -28,7 +28,7 @@ void modify(int* ptr) { // $ ast-def=ptr
|
||||
void test_output() {
|
||||
int x = 0;
|
||||
modify(&x);
|
||||
sink(x); // $ SPURIOUS: ir MISSING: ast
|
||||
sink(x); // $ ir MISSING: ast
|
||||
}
|
||||
|
||||
void modify_copy_of_pointer(int* p, unsigned len) { // $ ast-def=p
|
||||
@@ -71,4 +71,4 @@ void modify_copy_via_strdup(char* p) { // $ ast-def=p
|
||||
void test_modify_copy_via_strdup(char* p) { // $ ast-def=p
|
||||
modify_copy_via_strdup(p);
|
||||
sink(*p); // $ SPURIOUS: ir
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user