22 lines · cpp
1// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -flto -std=c++11 -o - %s | FileCheck %s2 3struct A {4 virtual ~A();5};6 7struct B {};8 9struct C {10 virtual void f();11};12 13struct S : A, virtual B, C {14 void f() override;15};16 17void f(S* s) { s->f(); }18 19// CHECK-LABEL: define dso_local void @"?f@@YAXPAUS@@@Z"20// CHECK: call21// CHECK: ret void22