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

15 lines
185 B
C++
Raw Normal View History

// RUN: %llvmgxx -xc++ %s -S -o - | opt -die -S | 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);
}