A test case to test that -warn-dead-stores does not emit a warning for stores to variables marked with '#pragma unused'.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67570 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/dead-stores.c b/test/Analysis/dead-stores.c
index 8e44717..c151057 100644
--- a/test/Analysis/dead-stores.c
+++ b/test/Analysis/dead-stores.c
@@ -167,3 +167,9 @@
   x = 1;
   return x;  
 }
+
+void f20(void) {
+  int x = 1; // no-warning
+#pragma unused(x)
+}
+