diff options
author | Teddy <[email protected]> | 2014-03-26 19:50:34 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-03-26 19:50:34 +0800 |
commit | dc4cacf854d28a0df88e37e2f0c0abce421657a9 (patch) | |
tree | 7e1a79d002576f2c91cfb680095749840fa5d33c /test.c | |
parent | eb001bab8f7a342afde93bd8c2c300a9e837db79 (diff) |
problem caused by `void *`
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,7 @@ #include <stdlib.h> #include "semantics.h" #define PV(str) cscope_push_var(scope, newvar(str)) +#define PT(str) cscope_push_type(scope, newtype(str)) CVar_t newvar(const char *name) { return cvar_create(name, NULL); @@ -21,11 +22,13 @@ int main() { cscope_enter(scope); PV("a"); PV("hello"); + PT("CType"); cscope_debug_print(scope); cscope_enter(scope); PV("a"); PV("yay"); PV("world"); + PT("CType"); cscope_debug_print(scope); cscope_exit(scope); cscope_debug_print(scope); |