2016-10-20 02:04:27 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -flto -std=c++11 -o - %s | FileCheck %s
|
|
|
|
|
|
|
|
struct A {
|
|
|
|
virtual ~A();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct B {};
|
|
|
|
|
|
|
|
struct C {
|
|
|
|
virtual void f();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct S : A, virtual B, C {
|
|
|
|
void f() override;
|
|
|
|
};
|
|
|
|
|
|
|
|
void f(S* s) { s->f(); }
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local void @"?f@@YAXPAUS@@@Z"
|
2016-10-20 02:04:27 +08:00
|
|
|
// CHECK: call
|
|
|
|
// CHECK: ret void
|