hanchenye-llvm-project/clang/test/CodeGenCXX/derived-to-base.cpp

17 lines
143 B
C++

// RUN: %clang_cc1 -emit-llvm %s -o -
struct A {
void f();
int a;
};
struct B : A {
double b;
};
void f() {
B b;
b.f();
}