diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-26 13:00:06 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-26 13:00:06 +0000 |
commit | 7c7b7adabcdab5abf6ac15d613f20c313ec47ec1 (patch) | |
tree | bb49a422174bf0c87918fbe780d6a04da1baedd3 /regress/usr.bin | |
parent | c2e7adb3138cecc3609264f8359027157781e848 (diff) |
more minimal example
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/pcc/cc/ccom/init004.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/regress/usr.bin/pcc/cc/ccom/init004.c b/regress/usr.bin/pcc/cc/ccom/init004.c index 96c6c62478e..61b1a6699ed 100644 --- a/regress/usr.bin/pcc/cc/ccom/init004.c +++ b/regress/usr.bin/pcc/cc/ccom/init004.c @@ -1,21 +1,12 @@ -/* should not issue: init004.c, line 17: warning: illegal pointer combination */ -struct ops; +enum foo {aap}; -typedef enum { aap} Linetype; - -typedef Linetype eval_fn(const struct ops *, int *, const char **); - -static eval_fn eval_table, eval_unary; +enum foo eval_table(void); static const struct ops { - eval_fn *inner; - struct op { - const char *str; - int (*fn)(int, int); - } op[5]; + enum foo (*afrunc)(void); } eval_ops[] = { - { eval_table, { { "||", 0 } } }, + { eval_table }, }; |