summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/func.c
diff options
context:
space:
mode:
authorTom Care <tom.care@uqconnect.edu.au>2010-08-30 19:25:43 +0000
committerTom Care <tom.care@uqconnect.edu.au>2010-08-30 19:25:43 +0000
commit9026d4b4887e88cbca40cc1de43ad91005b9c769 (patch)
tree5a57a731eddda204a3d3d329c6bdd6ef3a1dae44 /clang/test/Analysis/func.c
parent27f000e10bee7e8320b79f1723dc5ca05ad52227 (diff)
downloadbcm5719-llvm-9026d4b4887e88cbca40cc1de43ad91005b9c769.tar.gz
bcm5719-llvm-9026d4b4887e88cbca40cc1de43ad91005b9c769.zip
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
Diffstat (limited to 'clang/test/Analysis/func.c')
-rw-r--r--clang/test/Analysis/func.c2
1 files changed, 1 insertions, 1 deletions
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)();
}
OpenPOWER on IntegriCloud