projects
/
cdsspec-compiler.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b9b6ed37cc09c97281a9fa8a31c0165e95da042c
[cdsspec-compiler.git]
/
test.cc
1
#include <stdio.h>
2
3
typedef void (*action_t)(void*);
4
5
class Class {
6
public:
7
struct A {
8
int &a;
9
};
10
11
void action(void *info) {
12
printf("abc\n");
13
}
14
15
Class() {
16
action_t inst = (action_t) &Class::action;
17
//(*inst)(NULL);
18
}
19
};
20
21
int main() {
22
Class a;
23
Class &b = a;
24
Class *c = &b;
25
printf("%d\n", &b);
26
printf("%d\n", &c);
27
return 1;
28
}