summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-cast.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-08-28 15:11:24 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-08-28 15:11:24 +0000
commit8b899e424718788712fe10a42fde919ff3bc0362 (patch)
tree8a00de81b306e09d81033461940c65a3c4001df7 /clang/test/SemaTemplate/instantiate-cast.cpp
parente8a5863c3f56ae3ab261598c788d94b56c977dcb (diff)
downloadbcm5719-llvm-8b899e424718788712fe10a42fde919ff3bc0362.tar.gz
bcm5719-llvm-8b899e424718788712fe10a42fde919ff3bc0362.zip
ir-gen related patch for type conversion
with class type conversion methods. WIP. llvm-svn: 80365
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-cast.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-cast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/instantiate-cast.cpp b/clang/test/SemaTemplate/instantiate-cast.cpp
index fc492edaaf2..6b3fc6e1253 100644
--- a/clang/test/SemaTemplate/instantiate-cast.cpp
+++ b/clang/test/SemaTemplate/instantiate-cast.cpp
@@ -1,6 +1,6 @@
// RUN: clang-cc -fsyntax-only -verify %s
-struct A { int x; }; // expected-note 2 {{candidate}}
+struct A { int x; };
class Base {
public:
@@ -36,7 +36,7 @@ template struct CStyleCast0<A, int>; // expected-note{{instantiation}}
template<typename T, typename U>
struct StaticCast0 {
void f(T t) {
- (void)static_cast<U>(t); // expected-error{{initialization of 'struct A'}}
+ (void)static_cast<U>(t); // expected-error{{static_cast from 'int' to 'struct A' is not allowed}}
}
};
OpenPOWER on IntegriCloud