Fix a passing XFAIL test

Now that we can gracefully handle stack exhaustion, this test was passing in
darwin && asan. Instead, just unsupport it when threading is unavailable.

llvm-svn: 370270
This commit is contained in:
Erik Pilkington 2019-08-28 22:38:36 +00:00
parent 027f1da010
commit 6c7687ed67
1 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@
// 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
// This test can exceed stack usage in some configurations, so unless we can
// properly handle that don't run it.
// REQUIRES: thread_support
template <typename a, a b(unsigned), int c, unsigned...>
struct d : d<a, b, c - 1> {};