[PATCH] D54132: [CodeGenCXX] XFAIL test for ASAN on Darwin.

Volodymyr Sapsai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 5 17:49:08 PST 2018


vsapsai created this revision.
vsapsai added reviewers: george.karpenkov, lebedev.ri.
Herald added a subscriber: dexonsmith.

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


https://reviews.llvm.org/D54132

Files:
  clang/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp


Index: clang/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp
===================================================================
--- clang/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp
+++ clang/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 <typename a, a b(unsigned), int c, unsigned...>
 struct d : d<a, b, c - 1> {};
 template <typename a, a b(unsigned), unsigned... e>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54132.172692.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181106/affdf0a9/attachment.bin>


More information about the cfe-commits mailing list