[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / Analysis / dtor.cpp
blobea5b04684d7f62c99d92ae7abdf3f496c5a30e05
1 // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store region -analyzer-inline-call -cfg-add-implicit-dtors -verify %s
3 class A {
4 public:
5 ~A() {
6 int *x = 0;
7 *x = 3; // expected-warning{{Dereference of null pointer}}
9 };
11 int main() {
12 A a;