commit 3cfd13e2a61db4f1afb19e94eab010dd8f8facd3
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Tue Feb 21 08:19:56 2017 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
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
@@ -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
@@ -104,3 +104,4 @@
 0111-doubledef.c
 0112-cond.c
 0113-externredecl.c
+0114-shortassig.c

Reply via email to