blob: f21e82c4bcb43c219b0a0cc43b81275a4cb858ac [file] [log] [blame]
Ted Kremenek29c9e622011-05-24 20:41:31 +00001// RUN: %clang --analyze -std=c++0x %s -Xclang -verify
2
3void test_static_assert() {
4 static_assert(sizeof(void *) == sizeof(void*), "test_static_assert");
5}
6
7void test_analyzer_working() {
8 int *p = 0;
9 *p = 0xDEADBEEF; // expected-warning {{null}}
10}
11