From: Ted Kremenek Date: Wed, 30 Apr 2008 04:40:48 +0000 (+0000) Subject: Added test case for the static analyzer. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e866a7c654758cf42b0cc748a481661755ba6144;p=clang Added test case for the static analyzer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50467 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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++; + } +}