ref: 1f3216de535a95c71ec389f1212b59478489799b
parent: 97426651206b41873b551f25c26f70967b769ef8
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Feb 21 03:19:56 EST 2017
[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.
--- /dev/null
+++ b/tests/execute/0114-shortassig.c
@@ -1,0 +1,10 @@
+
+int
+main()
+{
+ short s = 1;
+ long l = 1;
+
+ s -= l;
+ return s;
+}
--- 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