]> granicus.if.org Git - clang/commitdiff
A test case to test that -warn-dead-stores does not emit a warning for stores to...
authorTed Kremenek <kremenek@apple.com>
Mon, 23 Mar 2009 22:30:58 +0000 (22:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 23 Mar 2009 22:30:58 +0000 (22:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67570 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/dead-stores.c

index 8e447172997248ce82a4249d32d6a2091bc6bedd..c151057096e728a71bc90b0ad19501398d9245f3 100644 (file)
@@ -167,3 +167,9 @@ int f19b(void) { // FIXME: Should this case be considered the same as f19?
   x = 1;
   return x;  
 }
+
+void f20(void) {
+  int x = 1; // no-warning
+#pragma unused(x)
+}
+