summaryrefslogtreecommitdiffstats
path: root/funtools/funtest/swap1
diff options
context:
space:
mode:
Diffstat (limited to 'funtools/funtest/swap1')
-rw-r--r--funtools/funtest/swap18
1 files changed, 8 insertions, 0 deletions
diff --git a/funtools/funtest/swap1 b/funtools/funtest/swap1
new file mode 100644
index 0000000..be9672e
--- /dev/null
+++ b/funtools/funtest/swap1
@@ -0,0 +1,8 @@
+ double a; # this is not passed to the generated C file
+ # nor is this
+ if( cur->x == cur->y ) continue;
+ a = cur->x;
+ cur->x = cur->y;
+ cur->y = a;
+ /* this comment is passed to the C file */
+ cur->avg:E = (cur->x+cur->y)/2.0;