summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2018-11-06 02:16:28 +0000
committerVolodymyr Sapsai <vsapsai@apple.com>2018-11-06 02:16:28 +0000
commit536a5c469193ccf4c57f70179a761d1ee731f21a (patch)
tree9182100c00949ab9f6c96d93ec32735d56f17a73
parentc210c65e77f143cd9f0e24a2e15e06d410f1be08 (diff)
downloadbcm5719-llvm-536a5c469193ccf4c57f70179a761d1ee731f21a.tar.gz
bcm5719-llvm-536a5c469193ccf4c57f70179a761d1ee731f21a.zip
[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 llvm-svn: 346200
-rw-r--r--clang/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp b/clang/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp
index 187f52797cd..61272b1ceea 100644
--- a/clang/test/CodeGenCXX/castexpr-basepathsize-threshold.cpp
+++ b/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>
OpenPOWER on IntegriCloud