aboutsummaryrefslogtreecommitdiff
path: root/test/C++Frontend/2005-07-21-VirtualBaseAccess.cpp
blob: 5bc336c69d24e9faf7469d3ddd34850a5bf3bc65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | not grep cast

void foo(int*);

struct FOO {
  int X;
};

struct BAR : virtual FOO { BAR(); };

int testfn() {
  BAR B;
  foo(&B.X);
}