mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
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;
|
|
}
|