From 6ff6cfe696df9e618c3deae7b34c701d58484c23 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sun, 8 Jul 2012 21:06:29 +0000 Subject: [PATCH] Halve template depth in an attempt to get this test passing on mingw32. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159917 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaTemplate/instantiation-depth-defarg.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/SemaTemplate/instantiation-depth-defarg.cpp b/test/SemaTemplate/instantiation-depth-defarg.cpp index f386a6a28f..6032a33514 100644 --- a/test/SemaTemplate/instantiation-depth-defarg.cpp +++ b/test/SemaTemplate/instantiation-depth-defarg.cpp @@ -1,13 +1,11 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-depth 512 -ftemplate-backtrace-limit 4 %s - -// XFAIL: mingw32 +// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-depth 256 -ftemplate-backtrace-limit 4 %s template struct S { typedef typename S::type type; static int f(int n = S::f()); // \ -// expected-error{{recursive template instantiation exceeded maximum depth of 512}} \ +// expected-error{{recursive template instantiation exceeded maximum depth of 256}} \ // expected-note 3 {{instantiation of default function argument}} \ -// expected-note {{skipping 509 contexts in backtrace}} \ +// expected-note {{skipping 253 contexts in backtrace}} \ // expected-note {{use -ftemplate-depth=N to increase recursive template instantiation depth}} }; -- 2.40.0