[cfe-commits] r111833 - /cfe/trunk/test/Analysis/idempotent-operations.c
Tom Care
tcare at apple.com
Mon Aug 23 12:57:25 PDT 2010
Author: tcare
Date: Mon Aug 23 14:57:25 2010
New Revision: 111833
URL: http://llvm.org/viewvc/llvm-project?rev=111833&view=rev
Log:
Modified pseudoconstant test case to make it a bit clearer and fix a missing line
Modified:
cfe/trunk/test/Analysis/idempotent-operations.c
Modified: cfe/trunk/test/Analysis/idempotent-operations.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/idempotent-operations.c?rev=111833&r1=111832&r2=111833&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/idempotent-operations.c (original)
+++ cfe/trunk/test/Analysis/idempotent-operations.c Mon Aug 23 14:57:25 2010
@@ -106,9 +106,8 @@
unsigned false4() {
// Trivial constant
const int height = 1;
-
- // Pseudo-constant (never changes after decl)
- int width = height;
+ int c = 42;
+ test(height * c); // no-warning
// Pseudo-constant (blockvar)
__block int a = 0;
@@ -116,6 +115,9 @@
a *= b; // no-warning
test(a);
+ // Pseudo-constant (never changes after decl)
+ int width = height;
+
return width * 10; // no-warning
}
More information about the cfe-commits
mailing list