forked from OSchip/llvm-project
[analyzer] Disable a test until inlining CXXConstructExprs is fully investigated.
llvm-svn: 126006
This commit is contained in:
parent
f1a60a61ba
commit
1227f3afca
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue