fix an embarassing typo that resulted in llvm-gcc bootstrap miscompare
[llvm/avr.git] / test / FrontendC++ / 2005-07-21-VirtualBaseAccess.cpp
blob7711cff6d36093f27426fb74251b893adca9575f
1 // RUN: %llvmgxx -xc++ %s -c -o - | opt -die | llvm-dis | not grep cast
3 void foo(int*);
5 struct FOO {
6 int X;
7 };
9 struct BAR : virtual FOO { BAR(); };
11 int testfn() {
12 BAR B;
13 foo(&B.X);