[cfe-commits] r75395 - /cfe/trunk/test/SemaTemplate/ackermann.cpp
Daniel Dunbar
daniel at zuster.org
Sat Jul 11 15:44:49 PDT 2009
Author: ddunbar
Date: Sat Jul 11 17:44:48 2009
New Revision: 75395
URL: http://llvm.org/viewvc/llvm-project?rev=75395&view=rev
Log:
Fix comment, and reduce computational expense of this test.
- I don't see any need for it to be this expensive.
Modified:
cfe/trunk/test/SemaTemplate/ackermann.cpp
Modified: cfe/trunk/test/SemaTemplate/ackermann.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/ackermann.cpp?rev=75395&r1=75394&r2=75395&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/ackermann.cpp (original)
+++ cfe/trunk/test/SemaTemplate/ackermann.cpp Sat Jul 11 17:44:48 2009
@@ -1,9 +1,9 @@
-// RUN: clang-cc -fsyntax-only -ftemplate-depth=1000 -verify %s
+// RUN: clang-cc -fsyntax-only -verify %s
// template<unsigned M, unsigned N>
// struct Ackermann {
// enum {
-// value = M ? (N ? Ackermann<M-1, Ackermann<M-1, N-1> >::value
+// value = M ? (N ? Ackermann<M-1, Ackermann<M, N-1> >::value
// : Ackermann<M-1, 1>::value)
// : N + 1
// };
@@ -34,4 +34,5 @@
};
};
-int g0[Ackermann<3, 8>::value == 2045 ? 1 : -1];
+int g0[Ackermann<3, 4>::value == 125 ? 1 : -1];
+
More information about the cfe-commits
mailing list