mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
14 lines
243 B
C++
14 lines
243 B
C++
// semmle-extractor-options: --expect_errors
|
|
template <typename T>
|
|
void report_type_via_error(T&& t) {
|
|
static_assert(sizeof(T) == 0, "");
|
|
}
|
|
|
|
static void foo() {
|
|
int i;
|
|
double d;
|
|
report_type_via_error(i);
|
|
report_type_via_error(d);
|
|
}
|
|
|