aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-03-26 19:50:34 +0800
committerTeddy <[email protected]>2014-03-26 19:50:34 +0800
commitdc4cacf854d28a0df88e37e2f0c0abce421657a9 (patch)
tree7e1a79d002576f2c91cfb680095749840fa5d33c /test.c
parenteb001bab8f7a342afde93bd8c2c300a9e837db79 (diff)
problem caused by `void *`
Diffstat (limited to 'test.c')
-rw-r--r--test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test.c b/test.c
index 21314b1..3a80510 100644
--- a/test.c
+++ b/test.c
@@ -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);