forked from OSchip/llvm-project
15 lines
193 B
C++
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);
|
||
|
}
|