[analyzer] Disable a test until inlining CXXConstructExprs is fully investigated.

llvm-svn: 126006
This commit is contained in:
Argyrios Kyrtzidis 2011-02-19 01:08:37 +00:00
parent f1a60a61ba
commit 1227f3afca
1 changed files with 11 additions and 0 deletions

View File

@ -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
}
}