diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-10-05 17:28:48 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-10-05 17:28:48 +0000 |
commit | c485ecd1482c169b6cc97940557e16e2086f7fe2 (patch) | |
tree | 2824ed384a44e84e691d4be956fb888b095e3dc2 /regress/usr.bin/pcc/cc/ccom/enum001.c | |
parent | 4b593bea5f0ea96407b6d529849c52c36a3a06f1 (diff) |
basic tests now work, including those that should fail
Diffstat (limited to 'regress/usr.bin/pcc/cc/ccom/enum001.c')
-rw-r--r-- | regress/usr.bin/pcc/cc/ccom/enum001.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/regress/usr.bin/pcc/cc/ccom/enum001.c b/regress/usr.bin/pcc/cc/ccom/enum001.c index d46065e7434..debeb7a77d2 100644 --- a/regress/usr.bin/pcc/cc/ccom/enum001.c +++ b/regress/usr.bin/pcc/cc/ccom/enum001.c @@ -3,8 +3,8 @@ enum foo { bar }; enum footoo { bar1 }; -enum foo f(void); -double g(void); +enum foo f(void) { return bar; } +double g(void) { return 0.0; } struct baz { enum foo (*ff)(void); @@ -19,3 +19,8 @@ static int h(enum foo *arg) { return 0; } + +int main() +{ + return 0; +} |