[cfe-commits] r159917 - /cfe/trunk/test/SemaTemplate/instantiation-depth-defarg.cpp

Richard Smith richard-llvm at metafoo.co.uk
Sun Jul 8 14:06:30 PDT 2012


Author: rsmith
Date: Sun Jul  8 16:06:29 2012
New Revision: 159917

URL: http://llvm.org/viewvc/llvm-project?rev=159917&view=rev
Log:
Halve template depth in an attempt to get this test passing on mingw32.

Modified:
    cfe/trunk/test/SemaTemplate/instantiation-depth-defarg.cpp

Modified: cfe/trunk/test/SemaTemplate/instantiation-depth-defarg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/instantiation-depth-defarg.cpp?rev=159917&r1=159916&r2=159917&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/instantiation-depth-defarg.cpp (original)
+++ cfe/trunk/test/SemaTemplate/instantiation-depth-defarg.cpp Sun Jul  8 16:06:29 2012
@@ -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<int N> struct S {
   typedef typename S<N-1>::type type;
   static int f(int n = S<N-1>::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}}
 
 };





More information about the cfe-commits mailing list