mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 23:04:36 -04:00
11 lines
255 B
C++
11 lines
255 B
C++
// RUN: %clang --analyze -std=c++0x %s -Xclang -verify
|
|
|
|
void test_static_assert() {
|
|
static_assert(sizeof(void *) == sizeof(void*), "test_static_assert");
|
|
}
|
|
|
|
void test_analyzer_working() {
|
|
int *p = 0;
|
|
*p = 0xDEADBEEF; // expected-warning {{null}}
|
|
}
|
|
|