Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
[CodeGenCXX] XFAIL test for ASAN on Darwin.
Browse files Browse the repository at this point in the history
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
(cherry picked from commit ffeab27)
  • Loading branch information
vsapsai committed Nov 6, 2018
1 parent 301599b commit 4148c50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/CodeGenCXX/castexpr-basepathsize-threshold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4148c50

Please sign in to comment.