new strategy
[cdsspec-compiler.git] / test.cc
diff --git a/test.cc b/test.cc
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b9b6ed37cc09c97281a9fa8a31c0165e95da042c 100644 (file)
--- a/test.cc
+++ b/test.cc
@@ -0,0 +1,28 @@
+#include <stdio.h>
+
+typedef void (*action_t)(void*);
+
+class Class {
+       public:
+       struct A {
+               int &a;
+       };
+       
+       void action(void *info) {
+               printf("abc\n");
+       }
+
+       Class() {
+               action_t inst = (action_t) &Class::action;
+               //(*inst)(NULL);
+       }
+};
+
+int main() {
+       Class a;
+       Class &b = a;
+       Class *c = &b;
+       printf("%d\n", &b);
+       printf("%d\n", &c);
+       return 1;
+}