aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-01-10 02:52:56 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-01-10 02:52:56 +0000
commit3cd8bd4226dc39dbeb729edab42afaf440a02ef2 (patch)
treeb24b428c1460c5a0fb54106ba9d51a853fb2fa45
parenta139481e62fdb209d9d87a54a5733f989d2e8d51 (diff)
Enhance test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93101 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/reference.cpp5
1 files changed, 5 insertions, 0 deletions
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
}