[cfe-commits] r44305 - in /cfe/trunk/test: Analysis/ Analysis/dead-stores.c Makefile Sema/dead-stores.c

Ted Kremenek kremenek at apple.com
Sat Nov 24 11:49:35 PST 2007


Author: kremenek
Date: Sat Nov 24 13:49:35 2007
New Revision: 44305

URL: http://llvm.org/viewvc/llvm-project?rev=44305&view=rev
Log:
Moved dead-stores test cast to a new test suite subdirectory: Analysis.

Added:
    cfe/trunk/test/Analysis/
    cfe/trunk/test/Analysis/dead-stores.c
      - copied unchanged from r44263, cfe/trunk/test/Sema/dead-stores.c
Removed:
    cfe/trunk/test/Sema/dead-stores.c
Modified:
    cfe/trunk/test/Makefile

Modified: cfe/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile?rev=44305&r1=44304&r2=44305&view=diff

==============================================================================
--- cfe/trunk/test/Makefile (original)
+++ cfe/trunk/test/Makefile Sat Nov 24 13:49:35 2007
@@ -2,4 +2,4 @@
 include $(LEVEL)/Makefile.common
 
 all::
-	PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts find CodeGen Lexer Preprocessor Parser Sema \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \) -print -exec ./TestRunner.sh {} \;
+	PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts find CodeGen Lexer Preprocessor Parser Sema Analysis \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \) -print -exec ./TestRunner.sh {} \;

Removed: cfe/trunk/test/Sema/dead-stores.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/dead-stores.c?rev=44304&view=auto

==============================================================================
--- cfe/trunk/test/Sema/dead-stores.c (original)
+++ cfe/trunk/test/Sema/dead-stores.c (removed)
@@ -1,21 +0,0 @@
-// RUN: clang -warn-dead-stores -verify %s
-
-void x() {
-  int k, y;
-	int abc=1;
-	long idx=abc+3*5; // expected-warning {{value stored to variable is never used}}
-}
-
-void a(void *b) {
- char *c = (char*)b; // no-warning
- char *d = b+1; // expected-warning {{value stored to variable is never used}}
- printf("%s", c);
-}
-
-void z() {
-	int r;
-	if ((r = f()) != 0) { // no-warning
-		int y = r; // no-warning
-		printf("the error is: %d\n", y);
-	}
-}





More information about the cfe-commits mailing list