diff options
-rw-r--r-- | clang/test/Analysis/exercise-ps.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Analysis/exercise-ps.c b/clang/test/Analysis/exercise-ps.c new file mode 100644 index 00000000000..0d5af4bcde2 --- /dev/null +++ b/clang/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++; + } +} |