new testcase for PR602

llvm-svn: 22495
This commit is contained in:
Chris Lattner 2005-07-21 21:55:08 +00:00
parent a9443f29b0
commit 9762834a7f
1 changed files with 14 additions and 0 deletions

View File

@ -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);
}