diff options
Diffstat (limited to 'util/romcc/tests/simple_test51.c')
-rw-r--r-- | util/romcc/tests/simple_test51.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test51.c b/util/romcc/tests/simple_test51.c new file mode 100644 index 0000000000..424ed7a0d1 --- /dev/null +++ b/util/romcc/tests/simple_test51.c @@ -0,0 +1,11 @@ +static void main(void) +{ + unsigned long a,b,c, d; + volatile unsigned long *val = (volatile unsigned long *)0x1234; + a = val[0]; + b = val[1]; + d = val[2]; + c = a*b; + val[3] = c; + a = c / d; +} |