From: Zhongxing Xu Date: Sun, 10 Jan 2010 02:52:56 +0000 (+0000) Subject: Enhance test case. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cd8bd4226dc39dbeb729edab42afaf440a02ef2;p=clang Enhance test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93101 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/reference.cpp b/test/Analysis/reference.cpp index 941147b9b2..a641b8e821 100644 --- a/test/Analysis/reference.cpp +++ b/test/Analysis/reference.cpp @@ -3,4 +3,9 @@ void f1() { int const &i = 3; int b = i; + + int *p = 0; + + if (b != 3) + *p = 1; // no-warning }