Skip to content
Browse files

[clang] [test] Disable the test exhausting stack on NetBSD

Disable the instantiation-depth-default.cpp test on NetBSD since it
requires more stack space than we have by default on NetBSD.

Differential Revision:
  • Loading branch information
mgorny committed Dec 12, 2019
1 parent 3ecfe64 commit 4c6c1d0f437194904d6093ca2f94230b6ec49e0b
Showing with 3 additions and 0 deletions.
  1. +3 −0 clang/test/SemaTemplate/instantiation-depth-default.cpp
@@ -4,6 +4,9 @@
// increases our per-frame stack usage enough that this test no longer fits
// within our normal stack space allocation.
// The default stack size on NetBSD is too small for this test.
// UNSUPPORTED: system-netbsd

template<int N, typename T> struct X : X<N+1, T*> {};
// expected-error-re@8 {{recursive template instantiation exceeded maximum depth of 1024{{$}}}}

0 comments on commit 4c6c1d0

Please sign in to comment.
You can’t perform that action at this time.