r173880 - [Sema] Constrain test added in r173873 with expected-error-re

David Blaikie dblaikie at gmail.com
Tue Jan 29 17:43:36 PST 2013


Author: dblaikie
Date: Tue Jan 29 19:43:36 2013
New Revision: 173880

URL: http://llvm.org/viewvc/llvm-project?rev=173880&view=rev
Log:
[Sema] Constrain test added in r173873 with expected-error-re

Suggested in post-commit review by Richard Smith.

Modified:
    cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp

Modified: cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp?rev=173880&r1=173879&r2=173880&view=diff
==============================================================================
--- cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp (original)
+++ cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp Tue Jan 29 19:43:36 2013
@@ -27,8 +27,7 @@ void f2(constexpr int i) {} // expected-
 struct s2 {
   constexpr int mi1; // expected-error {{non-static data member cannot be constexpr; did you intend to make it const?}}
   static constexpr int mi2; // expected-error {{requires an initializer}}
-  // FIXME: verify that there's no extra suffix in this error. -verify doesn't support anything like that at the moment as far as I know
-  mutable constexpr int mi3; // expected-error {{non-static data member cannot be constexpr}} expected-error {{'mutable' and 'const' cannot be mixed}}
+  mutable constexpr int mi3 = 3; // expected-error-re {{non-static data member cannot be constexpr$}} expected-error {{'mutable' and 'const' cannot be mixed}}
 };
 // typedef
 typedef constexpr int CI; // expected-error {{typedef cannot be constexpr}}





More information about the cfe-commits mailing list