diff options
Diffstat (limited to 'test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp')
-rw-r--r-- | test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp b/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp index 3bc639dd57..4393727c19 100644 --- a/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp +++ b/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp @@ -143,10 +143,6 @@ constexpr int ForStmt() { for (int n = 0; n < 10; ++n) #ifndef CXX1Y // expected-error@-2 {{statement not allowed in constexpr function}} -#else - // FIXME: Once we support evaluating a for-statement, this diagnostic should disappear. - // expected-error@-6 {{never produces a constant expression}} - // expected-note@-6 {{subexpression}} #endif return 0; } @@ -289,9 +285,5 @@ namespace std_example { #ifndef CXX1Y // expected-error@-5 {{C++1y}} // expected-error@-5 {{statement not allowed}} -#else - // FIXME: This should be allowed. - // expected-error@-10 {{never produces a constant}} - // expected-note@-9 {{subexpression}} #endif } |