[cfe-commits] r126006 - /cfe/trunk/test/Analysis/method-call.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Feb 18 17:08:38 PST 2011
Author: akirtzidis
Date: Fri Feb 18 19:08:37 2011
New Revision: 126006
URL: http://llvm.org/viewvc/llvm-project?rev=126006&view=rev
Log:
[analyzer] Disable a test until inlining CXXConstructExprs is fully investigated.
Modified:
cfe/trunk/test/Analysis/method-call.cpp
Modified: cfe/trunk/test/Analysis/method-call.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/method-call.cpp?rev=126006&r1=126005&r2=126006&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/method-call.cpp (original)
+++ cfe/trunk/test/Analysis/method-call.cpp Fri Feb 18 19:08:37 2011
@@ -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 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
+ }
+}
More information about the cfe-commits
mailing list