[hackers] [scc] [tests] Add 0114-shortassig.c || Roberto E. Vargas Caballero
commit 3cfd13e2a61db4f1afb19e94eab010dd8f8facd3
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Feb 21 08:19:56 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Feb 21 08:19:56 2017 +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.
diff --git a/tests/execute/0114-shortassig.c b/tests/execute/0114-shortassig.c
new file mode 100644
index 0000000..210bd33
--- /dev/null
+++ b/tests/execute/0114-shortassig.c
_AT_@ -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
index 9d42b60..4e8947d 100644
--- a/tests/execute/scc-tests.lst
+++ b/tests/execute/scc-tests.lst
_AT_@ -104,3 +104,4 @@
0111-doubledef.c
0112-cond.c
0113-externredecl.c
+0114-shortassig.c
Received on Tue Feb 21 2017 - 08:21:12 CET
This archive was generated by hypermail 2.3.0
: Tue Feb 21 2017 - 08:24:25 CET