diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-30 04:40:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-30 04:40:48 +0000 |
commit | e866a7c654758cf42b0cc748a481661755ba6144 (patch) | |
tree | 2a8f1566edb931fdbe0d6aed06cb6dbcdcafa1fe | |
parent | 436f2b9a7955203d2124b327df7b47ff33a58b89 (diff) |
Added test case for the static analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50467 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Analysis/exercise-ps.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Analysis/exercise-ps.c b/test/Analysis/exercise-ps.c new file mode 100644 index 0000000000..0d5af4bcde --- /dev/null +++ b/test/Analysis/exercise-ps.c @@ -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++; + } +} |