derived-to-base.cpp revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -emit-llvm %s -o -
2struct A {
3  void f();
4
5  int a;
6};
7
8struct B : A {
9  double b;
10};
11
12void f() {
13  B b;
14
15  b.f();
16}
17