Make functional-style casts emit correct messages, and fix a crash-on-invalid.
llvm-svn: 77451
diff --git a/clang/test/SemaTemplate/instantiate-cast.cpp b/clang/test/SemaTemplate/instantiate-cast.cpp
index d9088c8..fc492ed 100644
--- a/clang/test/SemaTemplate/instantiate-cast.cpp
+++ b/clang/test/SemaTemplate/instantiate-cast.cpp
@@ -89,7 +89,7 @@
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'}}
}
};