summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pcc/cc/ccom/enum001.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin/pcc/cc/ccom/enum001.c')
-rw-r--r--regress/usr.bin/pcc/cc/ccom/enum001.c9
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;
+}