mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
18 lines
269 B
C++
18 lines
269 B
C++
// 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(;
|
|
}
|