mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
df5e211e12
llvm-svn: 22495
15 lines
182 B
C++
15 lines
182 B
C++
// 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);
|
|
}
|