summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/method-call.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-19 01:08:37 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-19 01:08:37 +0000
commit1227f3afca6e4d919aaf47c7f24a039730658e4a (patch)
treeda51455a2aa13f9fe75884b7fdebd6c227f64fe5 /clang/test/Analysis/method-call.cpp
parentf1a60a61badefc093d74b8752001f7fc9c22608e (diff)
downloadbcm5719-llvm-1227f3afca6e4d919aaf47c7f24a039730658e4a.tar.gz
bcm5719-llvm-1227f3afca6e4d919aaf47c7f24a039730658e4a.zip
[analyzer] Disable a test until inlining CXXConstructExprs is fully investigated.
llvm-svn: 126006
Diffstat (limited to 'clang/test/Analysis/method-call.cpp')
-rw-r--r--clang/test/Analysis/method-call.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Analysis/method-call.cpp b/clang/test/Analysis/method-call.cpp
index 8c6b9da0f40..b5b81e3402a 100644
--- a/clang/test/Analysis/method-call.cpp
+++ b/clang/test/Analysis/method-call.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-inline-call -analyzer-store region -verify %s
+// XFAIL: *
struct A {
int x;
@@ -28,3 +29,13 @@ void f2() {
}
}
+void f3() {
+ const A &x = (A)3;
+ if (x.getx() == 3) {
+ int *p = 0;
+ *p = 3; // expected-warning{{Dereference of null pointer}}
+ } else {
+ int *p = 0;
+ *p = 3; // no-warning
+ }
+}
OpenPOWER on IntegriCloud