[cfe-commits] r50467 - /cfe/trunk/test/Analysis/exercise-ps.c

Ted Kremenek kremenek at apple.com
Tue Apr 29 21:40:48 PDT 2008


Author: kremenek
Date: Tue Apr 29 23:40:48 2008
New Revision: 50467

URL: http://llvm.org/viewvc/llvm-project?rev=50467&view=rev
Log:
Added test case for the static analyzer.

Added:
    cfe/trunk/test/Analysis/exercise-ps.c

Added: cfe/trunk/test/Analysis/exercise-ps.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/exercise-ps.c?rev=50467&view=auto

==============================================================================
--- cfe/trunk/test/Analysis/exercise-ps.c (added)
+++ cfe/trunk/test/Analysis/exercise-ps.c Tue Apr 29 23:40:48 2008
@@ -0,0 +1,10 @@
+// RUN: clang -checker-simple -verify %s
+//
+// Just exercise the analyzer (no assertions).
+
+
+static const char * f1(const char *x, char *y) {
+  while (*x != 0) {
+    *y++ = *x++;
+  }
+}





More information about the cfe-commits mailing list