scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 3cfd13e2a61db4f1afb19e94eab010dd8f8facd3
parent 98871ab9a52db7d31579d8b1352563b3da837d78
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 21 Feb 2017 08:19:56 +0100

[tests] Add 0114-shortassig.c

It is a known bug in scc that assignation abbreviations will not
work when the type of the lhs is smaller than the type of the rhs.

Diffstat:
Atests/execute/0114-shortassig.c | 10++++++++++
Mtests/execute/scc-tests.lst | 1+
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/tests/execute/0114-shortassig.c b/tests/execute/0114-shortassig.c @@ -0,0 +1,10 @@ + +int +main() +{ + short s = 1; + long l = 1; + + s -= l; + return s; +} diff --git a/tests/execute/scc-tests.lst b/tests/execute/scc-tests.lst @@ -104,3 +104,4 @@ 0111-doubledef.c 0112-cond.c 0113-externredecl.c +0114-shortassig.c