summaryrefslogtreecommitdiffstats
path: root/test/Analysis/misc-ps-cxx0x.cpp
blob: f21e82c4bcb43c219b0a0cc43b81275a4cb858ac (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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}}
}

OpenPOWER on IntegriCloud