diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-07-29 13:50:23 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-07-29 13:50:23 +0000 |
commit | ef0cb8e62d090ad88a01ca9fa89e48d7416f0ac7 (patch) | |
tree | 58b7e8f12a33c784db0cf35a0f810f546d768b92 /test/SemaTemplate/instantiate-cast.cpp | |
parent | d9b401c0856fb2194855e8ee5f80908b91b598c4 (diff) |
Make functional-style casts emit correct messages, and fix a crash-on-invalid.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-cast.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-cast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-cast.cpp b/test/SemaTemplate/instantiate-cast.cpp index d9088c8f6f..fc492edaaf 100644 --- a/test/SemaTemplate/instantiate-cast.cpp +++ b/test/SemaTemplate/instantiate-cast.cpp @@ -89,7 +89,7 @@ template struct ConstCast0<int const *, float *>; // expected-note{{instantiatio template<typename T, typename U> struct FunctionalCast1 { void f(T t) { - (void)U(t); // expected-error{{C-style cast from 'struct A' to 'int'}} + (void)U(t); // expected-error{{functional-style cast from 'struct A' to 'int'}} } }; |