aboutsummaryrefslogtreecommitdiffstats
path: root/test/nardino/scheduling/entry_regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nardino/scheduling/entry_regs.c')
-rw-r--r--test/nardino/scheduling/entry_regs.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/nardino/scheduling/entry_regs.c b/test/nardino/scheduling/entry_regs.c
new file mode 100644
index 00000000..9e6adacb
--- /dev/null
+++ b/test/nardino/scheduling/entry_regs.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+
+int f(int n) {
+ if (n > 0)
+ return 42;
+ else
+ return n;
+}
+
+
+int main(int argc, char *argv[]) {
+ int a=1;
+ float b=2.;
+ int c = f(a);
+ a = 3;
+ int d = f(a);
+ printf("%e, %d, %d, %d", b, a, c, d);
+ return 0;
+}