repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
Analysis
/
dtor.cpp
blob
ea5b04684d7f62c99d92ae7abdf3f496c5a30e05
1
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store region -analyzer-inline-call -cfg-add-implicit-dtors -verify %s
2
3
class
A
{
4
public
:
5
~
A
() {
6
int
*
x
=
0
;
7
*
x
=
3
;
// expected-warning{{Dereference of null pointer}}
8
}
9
};
10
11
int
main
() {
12
A a
;
13
}