[cfe-commits] r49735 - /cfe/trunk/test/Analysis/dead-stores.c
Ted Kremenek
kremenek at apple.com
Tue Apr 15 11:37:29 PDT 2008
Author: kremenek
Date: Tue Apr 15 13:37:29 2008
New Revision: 49735
URL: http://llvm.org/viewvc/llvm-project?rev=49735&view=rev
Log:
Added test case illustrating the use of '&'.
Modified:
cfe/trunk/test/Analysis/dead-stores.c
Modified: cfe/trunk/test/Analysis/dead-stores.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/dead-stores.c?rev=49735&r1=49734&r2=49735&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/dead-stores.c (original)
+++ cfe/trunk/test/Analysis/dead-stores.c Tue Apr 15 13:37:29 2008
@@ -29,3 +29,10 @@
k = 2; // expected-warning {{value stored to variable is never used}}
}
+
+void f5() {
+
+ int x = 4; // no-warning
+ int *p = &x; // expected-warning{{value stored to variable is never used}}
+
+}
\ No newline at end of file
More information about the cfe-commits
mailing list