aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/derived-to-base.cpp
blob: 63492d604d17b87f7ba7b476c2397048725ee20e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: clang-cc -emit-llvm %s -o -
struct A { 
  void f(); 
  
  int a;
};

struct B : A { 
  double b;
};

void f() {
  B b;
  
  b.f();
}