parent
a9443f29b0
commit
9762834a7f
|
@ -0,0 +1,14 @@
|
|||
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | not grep cast
|
||||
|
||||
void foo(int*);
|
||||
|
||||
struct FOO {
|
||||
int X;
|
||||
};
|
||||
|
||||
struct BAR : virtual FOO { BAR(); };
|
||||
|
||||
int testfn() {
|
||||
BAR B;
|
||||
foo(&B.X);
|
||||
}
|
Loading…
Reference in New Issue