diff options
Diffstat (limited to 'examples/gfcc/compiler/abs.c')
| -rw-r--r-- | examples/gfcc/compiler/abs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/gfcc/compiler/abs.c b/examples/gfcc/compiler/abs.c new file mode 100644 index 000000000..c93b703b6 --- /dev/null +++ b/examples/gfcc/compiler/abs.c @@ -0,0 +1,12 @@ +int abs (int x){ + if (x < 0){ + return 0 - x ; + } + else return x ; + } ; +int main () { + int i ; + i = abs (16); + } ; + + |
