mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 16:30:53 -05:00
8 lines
148 B
C++
8 lines
148 B
C++
// RUN: %clang_cc1 %s -emit-llvm-only
|
|
|
|
struct A { virtual void f(); };
|
|
struct B : A { };
|
|
|
|
const B& f(A *a) {
|
|
return dynamic_cast<const B&>(*a);
|
|
}
|