1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-02 00:42:52 +01:00
llvm-mirror/test/FrontendC++/2005-07-21-VirtualBaseAccess.cpp

15 lines
193 B
C++
Raw Normal View History

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