mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +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);
|
||
|
}
|