aboutsummaryrefslogtreecommitdiffstats
path: root/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test.h')
-rw-r--r--test.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/test.h b/test.h
new file mode 100644
index 0000000..9364452
--- /dev/null
+++ b/test.h
@@ -0,0 +1,19 @@
+#define M(T) _Generic((T),int:12);
+
+typedef struct ast_range {int i;} ast_range;
+typedef struct ast_if ast_if;
+typedef struct ast_value ast_value;
+typedef struct ast_expr ast_expr;
+typedef struct ast_root ast_root;
+typedef struct ast_expr_cmp ast_expr_cmp;
+typedef struct ast_expr_bitwise ast_expr_bitwise;
+
+#define ALLOC_MEMSET(T,VAL) {VAL=malloc(sizeof(T));memset(VAL,0,sizeof(T));}
+
+
+
+int fun()
+{
+ char *root;
+ ALLOC_MEMSET(ast_range,root);
+} \ No newline at end of file