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