diff options
-rw-r--r-- | test/SemaCXX/constant-expression-cxx11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/constant-expression-cxx11.cpp b/test/SemaCXX/constant-expression-cxx11.cpp index e65d1fa196..e57031b6cb 100644 --- a/test/SemaCXX/constant-expression-cxx11.cpp +++ b/test/SemaCXX/constant-expression-cxx11.cpp @@ -107,8 +107,8 @@ namespace ParameterScopes { // constant expression even though 'a' is still in scope. return ObscureTheTruth(b ? a : k); } - constexpr int n1a = MaybeReturnJunk(false, 0); // ok - constexpr int n2a = MaybeReturnJunk(true, 0); // expected-error {{must be initialized by a constant expression}} + constexpr int n1a = MaybeReturnNonstaticRef(false, 0); // ok + constexpr int n2a = MaybeReturnNonstaticRef(true, 0); // expected-error {{must be initialized by a constant expression}} constexpr int InternalReturnJunk(int n) { // FIXME: We should reject this: it never produces a constant expression. |