1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/C++Frontend/2005-07-21-VirtualBaseAccess.cpp
Tanya Lattner b484beac63 Revert changes for noinline.
llvm-svn: 37476
2007-06-06 20:46:40 +00:00

15 lines
193 B
C++

// RUN: %llvmgxx -xc++ %s -c -o - | opt -die | llvm-dis | not grep cast
void foo(int*);
struct FOO {
int X;
};
struct BAR : virtual FOO { BAR(); };
int testfn() {
BAR B;
foo(&B.X);
}