Sign in
llvm
/
llvm
/
refs/heads/release_29
/
.
/
test
/
FrontendC++
/
2005-07-21-VirtualBaseAccess.cpp
blob: ca600d6433df01a2ebbe5a9102a42b1aaeae66c4 [
file
] [
log
] [
blame
]
// RUN: %llvmgxx -xc++ %s -S -o - | opt -die -S | not grep cast
void
foo
(
int
*);
struct
FOO
{
int
X
;
};
struct
BAR
:
virtual
FOO
{
BAR
();
};
int
testfn
()
{
BAR B
;
foo
(&
B
.
X
);
}