diff options
Diffstat (limited to 'test/CXX/expr/expr.const/p2-0x.cpp')
-rw-r--r-- | test/CXX/expr/expr.const/p2-0x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/expr/expr.const/p2-0x.cpp b/test/CXX/expr/expr.const/p2-0x.cpp index 8d3638ffc6..054669ef78 100644 --- a/test/CXX/expr/expr.const/p2-0x.cpp +++ b/test/CXX/expr/expr.const/p2-0x.cpp @@ -362,8 +362,8 @@ namespace References { constexpr int e = 42; int &f = const_cast<int&>(e); extern int &g; - constexpr int &h(); // expected-note 2{{here}} - int &i = h(); // expected-note {{here}} expected-note {{undefined function 'h' cannot be used in a constant expression}} + constexpr int &h(); // expected-note {{here}} + int &i = h(); // expected-note {{here}} constexpr int &j() { return b; } int &k = j(); |