llvm-6502/test/C++Frontend/pointer_member.cpp
Chris Lattner 1f1f371d12 Make test cases executable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6166 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-13 19:50:01 +00:00

18 lines
219 B
C++

#include <stdio.h>
struct B { int i, j; };
struct D : public B {};
int D::*di = &D::i;
int D::*dj = &D::j;
int main() {
D d;
d.i = d.j = 0;
d.*di = 4;
d.*dj = 7;
printf("%d %d\n", d.i, d.j);
return 0;
}