add lots of stuff
[cdsspec-compiler.git] / test.cc
diff --git a/test.cc b/test.cc
index b6707b90c56417a2b417e5675e9c9f2ac923ac5f..64a4e3b63c7a1034ac4c1140d8fd229fe4f26a44 100644 (file)
--- a/test.cc
+++ b/test.cc
@@ -1,53 +1,18 @@
-#include <stdio.h>
-#include <stdlib.h>
-//#include "test.h"
-
-typedef void (*action_t)();
-
-void bar() {
-       printf("In bar\n");
-}
-
-template <typename T, action_t val, int b>
-class Class {
+class A {
        public:
-       static T arr;
-       struct A {
-               int &a;
-       };
-
-       static void action() {
-               printf("%d\n", arr);
-       }
-
-       action_t getFuncPtr() {
-               foo();
-               action();
-               return &Class::action;
+       A() {
        }
-       
-       static void foo() {
 
-       }
-
-       static void init() {
-               action_t inst1 = &foo;
-               int a = (1, 2);
-       }
-
-       Class() {
-               //ar = T((int)val);
-               (*val)();
-               //foo();
-       }
 };
 
-#include "test.h"
 
 int main() {
-       Class<int> c;
-       action_t f_ptr = c.getFuncPtr();
-       //cc.getFuncPtr();
+       A a;
+       if (true) {
+               int i = 5;
+       }
+       if (true) {
+               int i = 1;
+       }
        return 1;
 }
-