X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=test.cc;h=56bc5546c28d0754ecd48157094eca5ce6b92b00;hp=b9b6ed37cc09c97281a9fa8a31c0165e95da042c;hb=5e4f08e27cd3c912c25d8131543f8709b7d1a217;hpb=6ef50c959863f376bc1ef55be761da8a4a5b04b9 diff --git a/test.cc b/test.cc index b9b6ed3..56bc554 100644 --- a/test.cc +++ b/test.cc @@ -1,28 +1,3 @@ -#include - -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; }