From 9026d4b4887e88cbca40cc1de43ad91005b9c769 Mon Sep 17 00:00:00 2001 From: Tom Care Date: Mon, 30 Aug 2010 19:25:43 +0000 Subject: Adjusted the semantics of assign checking in IdempotentOperationChecker - Fixed a regression where assigning '0' would be reported - Changed the way self assignments are filtered to allow constant testing - Added a test case for assign ops - Fixed one test case where a function pointer was not considered constant - Fixed test cases relating to 0 assignment llvm-svn: 112501 --- clang/test/Analysis/func.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Analysis/func.c') diff --git a/clang/test/Analysis/func.c b/clang/test/Analysis/func.c index a7e84615fd3..53c873df55a 100644 --- a/clang/test/Analysis/func.c +++ b/clang/test/Analysis/func.c @@ -4,7 +4,7 @@ void f(void) { void (*p)(void); p = f; - p = &f; // expected-warning{{Assigned value is always the same as the existing value}} + p = &f; p(); (*p)(); } -- cgit v1.2.3