diff options
author | 2007-09-26 13:00:05 +0000 | |
---|---|---|
committer | 2007-09-26 13:00:05 +0000 | |
commit | e66198577b132a04de3717e6b3ee9df1f2c92005 (patch) | |
tree | e7eb8a6eb59f14a29516a36ebfb94443a212e1f3 | |
parent | pull from ragge's repo: (diff) | |
download | wireguard-openbsd-e66198577b132a04de3717e6b3ee9df1f2c92005.tar.xz wireguard-openbsd-e66198577b132a04de3717e6b3ee9df1f2c92005.zip |
more minimal example
-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 }, }; |