From: Daniel Dunbar Date: Sat, 11 Jul 2009 22:44:48 +0000 (+0000) Subject: Fix comment, and reduce computational expense of this test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70b8742bd0fa6a90be08b1150fa315fe893e7854;p=clang Fix comment, and reduce computational expense of this test. - I don't see any need for it to be this expensive. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75395 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/ackermann.cpp b/test/SemaTemplate/ackermann.cpp index 48fbbbb3cf..c936889f25 100644 --- a/test/SemaTemplate/ackermann.cpp +++ b/test/SemaTemplate/ackermann.cpp @@ -1,9 +1,9 @@ -// RUN: clang-cc -fsyntax-only -ftemplate-depth=1000 -verify %s +// RUN: clang-cc -fsyntax-only -verify %s // template // struct Ackermann { // enum { -// value = M ? (N ? Ackermann >::value +// value = M ? (N ? Ackermann >::value // : Ackermann::value) // : N + 1 // }; @@ -34,4 +34,5 @@ template<> struct Ackermann<0, 0> { }; }; -int g0[Ackermann<3, 8>::value == 2045 ? 1 : -1]; +int g0[Ackermann<3, 4>::value == 125 ? 1 : -1]; +