llvm-project/llvm/test/FrontendC++/2005-07-21-VirtualBaseAcces...

15 lines
193 B
C++
Raw Normal View History

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