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