]> granicus.if.org Git - clang/commitdiff
Added dead stores test case.
authorTed Kremenek <kremenek@apple.com>
Wed, 23 Jul 2008 23:18:43 +0000 (23:18 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 23 Jul 2008 23:18:43 +0000 (23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53966 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/dead-stores.c

index 208cd74510657a7b633645c8b033c1b78e7c7775..381bfcb2cf21ac9fa468dccf988a09d20c216688 100644 (file)
@@ -72,4 +72,10 @@ int f10() {
   return 1;
 }
 
+int f11() {
+  int x = 4;
+  return ++x; // no-warning
+}
+
+