C++: Initial telemetry queries and tests

This commit is contained in:
Calum Grant
2024-10-25 18:06:38 +01:00
parent fed240a2b2
commit f6776a4249
32 changed files with 547 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// semmle-extractor-options: --expect_errors
#include "test.h"
void function_with_errors() {
auto x = no_such_function();
x+2;
no_such_function();
ADD(x+1, nsf2());
f(1);
f();
}
uint32_t fn2() {
this is a syntax error;
so_is_this(;
}