Home | History | Annotate | Download | only in Analysis
      1 // RUN: %clang --analyze -std=c++0x %s -Xclang -verify
      2 
      3 void test_static_assert() {
      4   static_assert(sizeof(void *) == sizeof(void*), "test_static_assert");
      5 }
      6 
      7 void test_analyzer_working() {
      8   int *p = 0;
      9   *p = 0xDEADBEEF; // expected-warning {{null}}
     10 }
     11 
     12