aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-expr-4.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-01-23 20:20:40 +0000
committerAnders Carlsson <andersca@mac.com>2010-01-23 20:20:40 +0000
commit2bbae5de98f486d03e10c039668182075b5569dd (patch)
tree35267e97f56afe56e149131b35a650b5e21d35e9 /test/SemaTemplate/instantiate-expr-4.cpp
parent784f69940755dd66cf244dd84f57a57d358e5c43 (diff)
Use the new init code for member subobjects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-expr-4.cpp')
-rw-r--r--test/SemaTemplate/instantiate-expr-4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-expr-4.cpp b/test/SemaTemplate/instantiate-expr-4.cpp
index 428ef1ba87..b5ffa4b39b 100644
--- a/test/SemaTemplate/instantiate-expr-4.cpp
+++ b/test/SemaTemplate/instantiate-expr-4.cpp
@@ -197,7 +197,7 @@ template struct InitList1<APair, int*>;
template<typename T, typename Val1, typename Val2>
struct InitList2 {
void f(Val1 val1, Val2 val2) {
- T x = { val1, val2 }; // expected-error{{incompatible}}
+ T x = { val1, val2 }; // expected-error{{cannot initialize}}
}
};