summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-subscript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/instantiate-subscript.cpp')
-rw-r--r--test/SemaTemplate/instantiate-subscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-subscript.cpp b/test/SemaTemplate/instantiate-subscript.cpp
index a718751..8c119ec 100644
--- a/test/SemaTemplate/instantiate-subscript.cpp
+++ b/test/SemaTemplate/instantiate-subscript.cpp
@@ -16,7 +16,7 @@ struct ConvertibleToInt {
template<typename T, typename U, typename Result>
struct Subscript0 {
void test(T t, U u) {
- Result &result = t[u]; // expected-error{{subscripted value is not}}
+ Result &result = t[u]; // expected-error{{no viable overloaded operator[] for type}}
}
};
OpenPOWER on IntegriCloud