brintos

brintos / llvm-project-archived public Read only

0
0
Text · 236 B · 8fb5443 Raw
14 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only  %s2struct foo {3  virtual void bar() ;4};5template<typename T>6class zed : public foo {7};8template<typename T>9class bah : public zed<T> {10  void f() {11     const_cast<foo *>(this->g())->bar();12  }13};14