X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=test.cc;h=56bc5546c28d0754ecd48157094eca5ce6b92b00;hp=b6707b90c56417a2b417e5675e9c9f2ac923ac5f;hb=5e4f08e27cd3c912c25d8131543f8709b7d1a217;hpb=5fe4d211752fa05df28c1e2b2e17b69492d3a40b;ds=sidebyside diff --git a/test.cc b/test.cc index b6707b9..56bc554 100644 --- a/test.cc +++ b/test.cc @@ -1,53 +1,3 @@ -#include -#include -//#include "test.h" - -typedef void (*action_t)(); - -void bar() { - printf("In bar\n"); +extern int test() { + return 10; } - -template -class Class { - public: - static T arr; - struct A { - int &a; - }; - - static void action() { - printf("%d\n", arr); - } - - action_t getFuncPtr() { - foo(); - action(); - return &Class::action; - } - - 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 c; - action_t f_ptr = c.getFuncPtr(); - //cc.getFuncPtr(); - return 1; -} -