summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-09-26 13:00:05 +0000
committerotto <otto@openbsd.org>2007-09-26 13:00:05 +0000
commite66198577b132a04de3717e6b3ee9df1f2c92005 (patch)
treee7eb8a6eb59f14a29516a36ebfb94443a212e1f3
parentpull from ragge's repo: (diff)
downloadwireguard-openbsd-e66198577b132a04de3717e6b3ee9df1f2c92005.tar.xz
wireguard-openbsd-e66198577b132a04de3717e6b3ee9df1f2c92005.zip
more minimal example
-rw-r--r--regress/usr.bin/pcc/cc/ccom/init004.c17
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 },
};