diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-11-04 15:04:32 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-11-04 15:04:32 +0000 | 
| commit | 51fb8b013e7734b795139f49d3b1f77c539be20a (patch) | |
| tree | 59e0e47a9831dcf0e21e547927c8ebb7e113bfd1 /test/SemaTemplate/instantiate-cast.cpp | |
| parent | 73490b890977362d28dd6326843a1ecae413921d (diff) | |
Diffstat (limited to 'test/SemaTemplate/instantiate-cast.cpp')
| -rw-r--r-- | test/SemaTemplate/instantiate-cast.cpp | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/test/SemaTemplate/instantiate-cast.cpp b/test/SemaTemplate/instantiate-cast.cpp index 6b3fc6e12534..c3c318f36d5d 100644 --- a/test/SemaTemplate/instantiate-cast.cpp +++ b/test/SemaTemplate/instantiate-cast.cpp @@ -96,7 +96,6 @@ struct FunctionalCast1 {  template struct FunctionalCast1<int, float>;  template struct FunctionalCast1<A, int>; // expected-note{{instantiation}} -#if 0  // Generates temporaries, which we cannot handle yet.  template<int N, long M>  struct FunctionalCast2 { @@ -106,4 +105,13 @@ struct FunctionalCast2 {  };  template struct FunctionalCast2<1, 3>; -#endif + +// --------------------------------------------------------------------- +// implicit casting +// --------------------------------------------------------------------- +template<typename T> +struct Derived2 : public Base { }; + +void test_derived_to_base(Base *&bp, Derived2<int> *dp) { +  bp = dp; +} | 
