diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-14 21:55:23 +0000 | 
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-14 21:55:23 +0000 | 
| commit | 9af58d44269149e169cf7136763cc4f20dbef03d (patch) | |
| tree | 0b09d1dfbcb2325eab744f94d0de5c9b5dcc3008 | |
| parent | 00b29189b77e8638254e2c642c85149dc2e8c54d (diff) | |
| download | bcm5719-llvm-9af58d44269149e169cf7136763cc4f20dbef03d.tar.gz bcm5719-llvm-9af58d44269149e169cf7136763cc4f20dbef03d.zip  | |
Halve the constexpr recursion depth in this test in an attempt to make the
freebsd bots happy. In the longer term, we should have a mechanism for moving
constexpr recursion off the call stack, to support the default limit of 512
suggested by the standard.
llvm-svn: 146596
| -rw-r--r-- | clang/test/CXX/expr/expr.const/p2-0x.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CXX/expr/expr.const/p2-0x.cpp b/clang/test/CXX/expr/expr.const/p2-0x.cpp index dcb4bf4619d..2e5e7f2ca41 100644 --- a/clang/test/CXX/expr/expr.const/p2-0x.cpp +++ b/clang/test/CXX/expr/expr.const/p2-0x.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -std=c++11 -pedantic -verify -fcxx-exceptions %s +// RUN: %clang_cc1 -fsyntax-only -std=c++11 -pedantic -verify -fcxx-exceptions %s -fconstexpr-depth 256  // A conditional-expression is a core constant expression unless it involves one  // of the following as a potentially evaluated subexpression [...]: @@ -95,11 +95,11 @@ namespace NonConstExprCtor {  //   exceed the implementation-defined recursion limits (see Annex B);  namespace RecursionLimits {    constexpr int RecurseForever(int n) { -    return n + RecurseForever(n+1); // expected-note {{constexpr evaluation exceeded maximum depth of 512 calls}} +    return n + RecurseForever(n+1); // expected-note {{constexpr evaluation exceeded maximum depth of 256 calls}}    }    struct AlsoRecurseForever {      constexpr AlsoRecurseForever(int n) : -      n(AlsoRecurseForever(n+1).n) // expected-note {{constexpr evaluation exceeded maximum depth of 512 calls}} +      n(AlsoRecurseForever(n+1).n) // expected-note {{constexpr evaluation exceeded maximum depth of 256 calls}}      {}      int n;    };  | 

