blob: 7711cff6d36093f27426fb74251b893adca9575f [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgxx -xc++ %s -c -o - | opt -die | llvm-dis | not grep cast
2
3void foo(int*);
4
5struct FOO {
6 int X;
7};
8
9struct BAR : virtual FOO { BAR(); };
10
11int testfn() {
12 BAR B;
13 foo(&B.X);
14}