aboutsummaryrefslogtreecommitdiff
path: root/foo.c
diff options
context:
space:
mode:
Diffstat (limited to 'foo.c')
-rw-r--r--foo.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/foo.c b/foo.c
index 0d78c720..80b88cfb 100644
--- a/foo.c
+++ b/foo.c
@@ -1,12 +1,18 @@
-#include <stdio.h>
-
-int main(void) {
- int x = 23;
- const char *s = "Hi";
-#define say(x) _Generic(x, int: printf("%d\n", x), char *: puts(s), default: puts("???"))
- say(x);
- say(s);
-#define all(...) { __VA_ARGS__; }
- all(say("one"); say(2))
+#include "nextlang.h"
+
+static void foo(Int64 x);
+
+
+void foo(Int64 x)
+{
+ say("Hello world!");
+}
+
+int main(int argc, const char *argv[])
+{
+ (void) argc;
+ (void) argv;
+ foo(((Int64_t) 5));
+
return 0;
}