From 3cd8bd4226dc39dbeb729edab42afaf440a02ef2 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sun, 10 Jan 2010 02:52:56 +0000 Subject: [PATCH] Enhance test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93101 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/reference.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 } -- 2.50.1