diff options
Diffstat (limited to 'validation/backend')
| -rw-r--r-- | validation/backend/shift-special.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/validation/backend/shift-special.c b/validation/backend/shift-special.c new file mode 100644 index 00000000..d5e4d3d3 --- /dev/null +++ b/validation/backend/shift-special.c @@ -0,0 +1,13 @@ +long shift(long a, short b); +long shift(long a, short b) +{ + long r1 = a << b; + long r2 = b << a; + + return r1 + r2; +} + +/* + * check-name: shift-special + * check-command: ./sparsec -c $file -o tmp.o + */ |
