Author: vsapsai Date: Mon Nov 5 18:16:28 2018 New Revision: 346200 URL: http://llvm.org/viewvc/llvm-project?rev=346200&view=rev Log: [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 Modified: cfe/trunk/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp Modified: cfe/trunk/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp?rev=346200&r1=346199&r2=346200&view=diff ============================================================================== --- cfe/trunk/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp (original) +++ cfe/trunk/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp Mon Nov 5 18:16:28 2018 @@ -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 <typename a, a b(unsigned), int c, unsigned...> struct d : d<a, b, c - 1> {}; template <typename a, a b(unsigned), unsigned... e> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits