mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
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);
|
||
|
}
|