make code look better
[cdsspec-compiler.git] / test.cc
diff --git a/test.cc b/test.cc
index b9b6ed3..56bc554 100644 (file)
--- a/test.cc
+++ b/test.cc
@@ -1,28 +1,3 @@
-#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;
+extern int test() {
+       return 10;
 }