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

struct B : A { 
  double b;
};

void f() {
  B b;
  
  b.f();
}
OpenPOWER on IntegriCloud