mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
1f1f371d12
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6166 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
219 B
C++
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;
|
|
}
|