diff options
Diffstat (limited to 'test/SemaTemplate/dependent-type-identity.cpp')
-rw-r--r-- | test/SemaTemplate/dependent-type-identity.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/SemaTemplate/dependent-type-identity.cpp b/test/SemaTemplate/dependent-type-identity.cpp index 5b9da5d89258..6b23a38f8486 100644 --- a/test/SemaTemplate/dependent-type-identity.cpp +++ b/test/SemaTemplate/dependent-type-identity.cpp @@ -111,7 +111,9 @@ namespace PR18275 { void A<T>::f(int x) { x = 0; } template<typename T> - void A<T>::g(const int x) { x = 0; } // expected-error {{not assignable}} + void A<T>::g(const int x) { // expected-note {{declared const here}} + x = 0; // expected-error {{cannot assign to variable 'x'}} + } template<typename T> void A<T>::h(T) {} // FIXME: Should reject this. Type is different from prior decl if T is an array type. |