[cfe-commits] r67570 - /cfe/trunk/test/Analysis/dead-stores.c
Ted Kremenek
kremenek at apple.com
Mon Mar 23 15:30:59 PDT 2009
Author: kremenek
Date: Mon Mar 23 17:30:58 2009
New Revision: 67570
URL: http://llvm.org/viewvc/llvm-project?rev=67570&view=rev
Log:
A test case to test that -warn-dead-stores does not emit a warning for stores to variables marked with '#pragma unused'.
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=67570&r1=67569&r2=67570&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/dead-stores.c (original)
+++ cfe/trunk/test/Analysis/dead-stores.c Mon Mar 23 17:30:58 2009
@@ -167,3 +167,9 @@
x = 1;
return x;
}
+
+void f20(void) {
+ int x = 1; // no-warning
+#pragma unused(x)
+}
+
More information about the cfe-commits
mailing list