diff --git a/test/Analysis/idempotent-operations.c b/test/Analysis/idempotent-operations.c index 179c7a4da3f8c4a0896be555be3a533ee82d813e..3724b93cc74eb719e21a6acb2fb7758fa01279f1 100644 --- a/test/Analysis/idempotent-operations.c +++ b/test/Analysis/idempotent-operations.c @@ -106,9 +106,8 @@ unsigned false3(int param) { 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 @@ unsigned false4() { a *= b; // no-warning test(a); + // Pseudo-constant (never changes after decl) + int width = height; + return width * 10; // no-warning }