blob: 7711cff6d36093f27426fb74251b893adca9575f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// RUN: %llvmgxx -xc++ %s -c -o - | opt -die | llvm-dis | not grep cast
void foo(int*);
struct FOO {
int X;
};
struct BAR : virtual FOO { BAR(); };
int testfn() {
BAR B;
foo(&B.X);
}
|