]> granicus.if.org Git - clang/commitdiff
Added test case for the static analyzer.
authorTed Kremenek <kremenek@apple.com>
Wed, 30 Apr 2008 04:40:48 +0000 (04:40 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 30 Apr 2008 04:40:48 +0000 (04:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50467 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/exercise-ps.c [new file with mode: 0644]

diff --git a/test/Analysis/exercise-ps.c b/test/Analysis/exercise-ps.c
new file mode 100644 (file)
index 0000000..0d5af4b
--- /dev/null
@@ -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++;
+  }
+}