summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiation-depth-defarg.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-07-08 21:06:29 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-07-08 21:06:29 +0000
commitd636ce5ec1ec46c84d20b68a0e89ad58748b81c5 (patch)
tree86d2c21a4b43d4aa1f403ccf5074c6c8bbec84a0 /clang/test/SemaTemplate/instantiation-depth-defarg.cpp
parenta5e136b613a44adcfe1973b1e33b969fc209f2f5 (diff)
downloadbcm5719-llvm-d636ce5ec1ec46c84d20b68a0e89ad58748b81c5.tar.gz
bcm5719-llvm-d636ce5ec1ec46c84d20b68a0e89ad58748b81c5.zip
Halve template depth in an attempt to get this test passing on mingw32.
llvm-svn: 159917
Diffstat (limited to 'clang/test/SemaTemplate/instantiation-depth-defarg.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiation-depth-defarg.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/test/SemaTemplate/instantiation-depth-defarg.cpp b/clang/test/SemaTemplate/instantiation-depth-defarg.cpp
index f386a6a28f1..6032a33514a 100644
--- a/clang/test/SemaTemplate/instantiation-depth-defarg.cpp
+++ b/clang/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<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}}
};
OpenPOWER on IntegriCloud