1 // RUN: %clang_cc1 -flto -flto-unit -emit-llvm -o - -triple=x86_64-pc-win32 %s -fsanitize=cfi-derived-cast -fsanitize-trap=cfi-derived-cast | FileCheck %s
9 struct bar
: virtual public foo
{
11 // CHECK: define{{.*}}@"?f@?$bar@Ubaz@@@@UEAAXXZ"
12 // Load "this", vbtable, vbase offset and vtable.
17 // CHECK: @llvm.type.test{{.*}}!"?AUfoo@@"
18 static_cast<T
&>(*this);
22 struct baz
: public bar
<baz
> {