File: a07-alu

package info (click to toggle)
ceccomp 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,648 kB
  • sloc: ansic: 6,531; python: 1,078; makefile: 248; sh: 145
file content (17 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Test alu related errors
STDIN
$A <<= 64
$A >>= 0x100
$A /= 0
return ALLOW
STDERR
[WARN]: 1:-: Left or right shifting more than 32 bits
$A <<= 64
~~~~~~~~~
[WARN]: 2:-: Left or right shifting more than 32 bits
$A >>= 0x100
~~~~~~~~~~~~
[WARN]: 3:-: Dividing by zero
$A /= 0
~~~~~~~
[ERROR]: Found errors when assembling