diff options
author | Anna Zaks <ganna@apple.com> | 2013-04-10 22:06:29 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-04-10 22:06:29 +0000 |
commit | fececcbc3890955fd46f92036e9cb6ee7d0a60f4 (patch) | |
tree | 4659a7ad4bfd417105722deaa15492f267abaf91 /test/Analysis/cstring-syntax-cxx.cpp | |
parent | 7a87e520e42c1e58c358e3a9a436ef17f551fd13 (diff) |
[analyzer] Fix a crash in SyntaxCString checker when given a custom strncat.
Fixes PR13476
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/cstring-syntax-cxx.cpp')
-rw-r--r-- | test/Analysis/cstring-syntax-cxx.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Analysis/cstring-syntax-cxx.cpp b/test/Analysis/cstring-syntax-cxx.cpp index bae3d0a164..39c978ab60 100644 --- a/test/Analysis/cstring-syntax-cxx.cpp +++ b/test/Analysis/cstring-syntax-cxx.cpp @@ -15,3 +15,8 @@ void test(X a, X b) { X c = a + b; } +// Ensure we don't crash on custom-defined strncat. +char strncat (); +int main () { + return strncat (); +}
\ No newline at end of file |