aboutsummaryrefslogtreecommitdiffstats
path: root/examples/cond_return.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cond_return.c')
-rw-r--r--examples/cond_return.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/cond_return.c b/examples/cond_return.c
new file mode 100644
index 0000000..74bd493
--- /dev/null
+++ b/examples/cond_return.c
@@ -0,0 +1,7 @@
+int f(int y) {
+ int x = 5;
+ if (y == 21) {
+ x = 20;
+ }
+ return x;
+}