[cfe-commits] r144378 - /cfe/trunk/test/SemaCXX/constexpr-factorial.cpp

Richard Smith richard-llvm at metafoo.co.uk
Thu Nov 10 23:10:33 PST 2011


Author: rsmith
Date: Fri Nov 11 01:10:32 2011
New Revision: 144378

URL: http://llvm.org/viewvc/llvm-project?rev=144378&view=rev
Log:
Don't recurse so deep in this test, pending APValue rework to further reduce the
stack pressure.

Modified:
    cfe/trunk/test/SemaCXX/constexpr-factorial.cpp

Modified: cfe/trunk/test/SemaCXX/constexpr-factorial.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/constexpr-factorial.cpp?rev=144378&r1=144377&r2=144378&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/constexpr-factorial.cpp (original)
+++ cfe/trunk/test/SemaCXX/constexpr-factorial.cpp Fri Nov 11 01:10:32 2011
@@ -3,7 +3,7 @@
 constexpr unsigned oddfac(unsigned n) {
   return n == 1 ? 1 : n * oddfac(n-2);
 }
-constexpr unsigned k = oddfac(999);
+constexpr unsigned k = oddfac(123);
 
 using A = int[k % 256];
-using A = int[73];
+using A = int[43];





More information about the cfe-commits mailing list