From: Volodymyr Sapsai Date: Tue, 6 Nov 2018 02:16:28 +0000 (+0000) Subject: [CodeGenCXX] XFAIL test for ASAN on Darwin. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffeab27fa3c82df40b8b974eb23085b3a4cec5dd;p=clang [CodeGenCXX] XFAIL test for ASAN on Darwin. The test hits stack overflow trying to instantiate recursive templates. It is observed with ASAN and not with a regular build because ASAN increases stack frame size. rdar://problem/45009892 Reviewers: george.karpenkov, lebedev.ri Reviewed By: george.karpenkov Subscribers: dexonsmith, rjmccall, cfe-commits Differential Revision: https://reviews.llvm.org/D54132 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346200 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp b/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp index 187f52797c..61272b1cee 100644 --- a/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp +++ b/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp @@ -3,6 +3,10 @@ // https://bugs.llvm.org/show_bug.cgi?id=38356 // We only check that we do not crash. +// ASAN increases stack usage, so we are hitting stack overflow before reaching +// recursive template instantiation limit. +// XFAIL: darwin && asan + template struct d : d {}; template