From fececcbc3890955fd46f92036e9cb6ee7d0a60f4 Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Wed, 10 Apr 2013 22:06:29 +0000 Subject: [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 --- test/Analysis/cstring-syntax-cxx.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/Analysis/cstring-syntax-cxx.cpp') 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 -- cgit v1.2.3-18-g5258