Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only  %s
      2 struct foo {
      3   virtual void bar() ;
      4 };
      5 template<typename T>
      6 class zed : public foo {
      7 };
      8 template<typename T>
      9 class bah : public zed<T> {
     10   void f() {
     11      const_cast<foo *>(this->g())->bar();
     12   }
     13 };
     14