[hackers] [scc] [cc1] Update cc1/tests after last changes || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 12 Dec 2016 15:53:03 +0100 (CET)

commit e6d33b692fd3237ec7197c2214ae74b476849dd8
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Dec 12 14:15:04 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Dec 12 15:30:33 2016 +0100

    [cc1] Update cc1/tests after last changes
    
    In the last month there were a big number of changes
    which solved a big number of errors, but the tests
    of cc1 was not updated.

diff --git a/cc1/tests/test001.c b/cc1/tests/test001.c
index 026923f..f72f6c6 100644
--- a/cc1/tests/test001.c
+++ b/cc1/tests/test001.c
_AT_@ -9,7 +9,7 @@ X4 I F "printf
 G6 I F "main
 {
 \
-V9 K #N13
+V9 K #ND
 Y8 V9 " (
         #"hello world
         #K0A
diff --git a/cc1/tests/test003.c b/cc1/tests/test003.c
index 6334f1e..0b75131 100644
--- a/cc1/tests/test003.c
+++ b/cc1/tests/test003.c
_AT_@ -10,12 +10,12 @@ G2 I F "foo
 \
         h #I2A
 }
-G3 I F "bar
+G4 I F "bar
 {
 \
         h #I18
 }
-G4 I F "main
+G5 I F "main
 {
 \
         h G2 cI
diff --git a/cc1/tests/test014.c b/cc1/tests/test014.c
index f5f816a..05babcf 100644
--- a/cc1/tests/test014.c
+++ b/cc1/tests/test014.c
_AT_@ -39,7 +39,7 @@ R12 I "par
 \
 A15 I "par
 }
-T17 0 F "func3
+T18 0 F "func3
 {
 R16 I "par
 \
diff --git a/cc1/tests/test016.c b/cc1/tests/test016.c
index 26b9bce..0780d16 100644
--- a/cc1/tests/test016.c
+++ b/cc1/tests/test016.c
_AT_@ -17,30 +17,30 @@ A6 P "p
         A4 #I1 :I
         A6 A4 'P :P
         A6 _AT_I #I0 :I
- y L7 A4 #I0 =I
+ y L8 A4 #I0 =I
         h #I1
-L7
+L8
         A6 G1 'P :P
         A6 _AT_I #I0 :I
- y L8 A6 #P0 !I
+ y L9 A6 #P0 !I
         h #I1
-L8
+L9
         h #I0
 }
-G9 I F "func2
+G11 I F "func2
 {
 \
-A10 I "x
-A11 P "p
-A13 P "pp
- A10 #I1 :I
- A11 A10 'P :P
- A13 A11 'P :P
- y L14 A11 #P0 =I
- A13 _AT_P @I #I0 :I
-L14
- A11 #P0 :P
- h A10
+A12 I "x
+A13 P "p
+A15 P "pp
+ A12 #I1 :I
+ A13 A12 'P :P
+ A15 A13 'P :P
+ y L17 A13 #P0 =I
+ A15 _AT_P @I #I0 :I
+L17
+ A13 #P0 :P
+ h A12
 }
 */
 
diff --git a/cc1/tests/test018.c b/cc1/tests/test018.c
index 6a5f89e..16d4766 100644
--- a/cc1/tests/test018.c
+++ b/cc1/tests/test018.c
_AT_@ -19,18 +19,18 @@ A11 V10 "v
         A9 A5 'P #P4 +P #P3 +P :P
         A5 'P #P4 +P #P3 +P _AT_K #K2 :K
         A11 #I2 :I
- y L13 A5 'P #P4 +P #P3 +P _AT_K gI #I2 =I
- h #I1
-L13
- y L14 A7 #P4 +P #P3 +P _AT_K gI #I2 =I
- h #I1
-L14
- y L15 A9 _AT_K gI #I2 =I
+ y L15 A5 'P #P4 +P #P3 +P _AT_K gI #I2 =I
         h #I1
 L15
- y L16 A11 #I2 =I
+ y L16 A7 #P4 +P #P3 +P _AT_K gI #I2 =I
         h #I1
 L16
+ y L17 A9 _AT_K gI #I2 =I
+ h #I1
+L17
+ y L18 A11 #I2 =I
+ h #I1
+L18
         h #I0
 }
 */
diff --git a/cc1/tests/test026.c b/cc1/tests/test026.c
index dcf052d..b89b7f5 100644
--- a/cc1/tests/test026.c
+++ b/cc1/tests/test026.c
_AT_@ -10,7 +10,7 @@ G3 I F "main
 \
 A4 I "y
 A6 P "p
-V8 K #N10
+V8 K #NA
 Y7 V8 " (
         #"test026.c
         #K00
diff --git a/cc1/tests/test027.c b/cc1/tests/test027.c
index 8294af9..174fece 100644
--- a/cc1/tests/test027.c
+++ b/cc1/tests/test027.c
_AT_@ -9,7 +9,7 @@ G3 I F "main
 {
 \
 A5 P "p
-V7 K #N25
+V7 K #N19
 Y6 V7 " (
         #"hello is better than bye
         #K00
diff --git a/cc1/tests/test032.c b/cc1/tests/test032.c
index 7f28d39..59d15c9 100644
--- a/cc1/tests/test032.c
+++ b/cc1/tests/test032.c
_AT_@ -8,7 +8,7 @@ output:
 G5 I F "main
 {
 \
-V9 K #N44
+V9 K #N2C
 Y8 V9 " (
         #"This is a string $ or # or ##and it is ok !
         #K00
diff --git a/cc1/tests/test034.c b/cc1/tests/test034.c
index 6fc42f9..7744fd9 100644
--- a/cc1/tests/test034.c
+++ b/cc1/tests/test034.c
_AT_@ -9,19 +9,19 @@ test034.c:46: error: redeclaration of 'bar'
 output:
 X3 S2 "x
 X5 I F "foo
-G6 I F "main
+G7 I F "main
 {
 \
-X7 S2 "x
- h X7 'P #P0 !I
+X8 S2 "x
+ h X8 'P #P0 !I
 }
 G5 I F "foo
 {
 \
- X3 M9 .I #I0 :I
- h X3 M9 .I
+ X3 M10 .I #I0 :I
+ h X3 M10 .I
 }
-X13 S11 "bar2
+X14 S12 "bar2
 */
 
 extern struct X x;
diff --git a/cc1/tests/test036.c b/cc1/tests/test036.c
index d09bfc0..7771957 100644
--- a/cc1/tests/test036.c
+++ b/cc1/tests/test036.c
_AT_@ -12,40 +12,40 @@ R1 P "to
 R2 P "from
 R3 I "count
 \
-R7 I "n
- R7 R3 #I7 +I #I8 /I :I
+R8 I "n
+ R8 R3 #I7 +I #I8 /I :I
         s R3 #I8 %I
- v L9 #I0
-L9
- e
+ v L10 #I0
 L10
+ e
+L11
         R1 _AT_I R2 #P2 :iP @I :I
- v L12 #I7
-L12
- R1 _AT_I R2 #P2 :iP @I :I
- v L13 #I6
+ v L13 #I7
 L13
         R1 _AT_I R2 #P2 :iP @I :I
- v L14 #I5
+ v L14 #I6
 L14
         R1 _AT_I R2 #P2 :iP @I :I
- v L15 #I4
+ v L15 #I5
 L15
         R1 _AT_I R2 #P2 :iP @I :I
- v L16 #I3
+ v L16 #I4
 L16
         R1 _AT_I R2 #P2 :iP @I :I
- v L17 #I2
+ v L17 #I3
 L17
         R1 _AT_I R2 #P2 :iP @I :I
- v L18 #I1
+ v L18 #I2
 L18
         R1 _AT_I R2 #P2 :iP @I :I
- y L10 R7 #I1 :-I #I0 >I
+ v L19 #I1
+L19
+ R1 _AT_I R2 #P2 :iP @I :I
+ y L11 R8 #I1 :-I #I0 >I
         b
-L11
- t L8
-L8
+L12
+ t L9
+L9
 }
 */
 
diff --git a/cc1/tests/test040.c b/cc1/tests/test040.c
index 516a6fa..4947404 100644
--- a/cc1/tests/test040.c
+++ b/cc1/tests/test040.c
_AT_@ -5,15 +5,15 @@ name: TEST040
 description: Test for bug parsing typenames in struct definition
 error:
 output:
-G9 I F "main
+G10 I F "main
 {
 \
 S2 "List #NC #N2
 M4 I "len #N0
 M6 P "head #N2
-M7 P "back #N4
-A10 S2 "List
- h A10 M4 .I
+M8 P "back #N4
+A11 S2 "List
+ h A11 M4 .I
 }
 */
 
diff --git a/cc1/tests/test046.c b/cc1/tests/test046.c
index ba25f2f..8440b53 100644
--- a/cc1/tests/test046.c
+++ b/cc1/tests/test046.c
_AT_@ -20,9 +20,9 @@ L5
         y L7 G2 'P #P2 +P _AT_I #I2 =I
         h #I2
 L7
- y L8 G2 'P #P4 +P _AT_I #I3 =I
+ y L9 G2 'P #P4 +P _AT_I #I3 =I
         h #I3
-L8
+L9
         h #I0
 }
 */
diff --git a/cc1/tests/test049.c b/cc1/tests/test049.c
index a0685ef..97c1192 100644
--- a/cc1/tests/test049.c
+++ b/cc1/tests/test049.c
_AT_@ -11,12 +11,12 @@ G1 I "x (
 G3 P "p (
         G1 'P
 )
-G5 I F "main
+G6 I F "main
 {
 \
- y L6 G3 _AT_I #I5 =I
+ y L7 G3 _AT_I #I5 =I
         h #I1
-L6
+L7
         h #I0
 }
 */
diff --git a/cc1/tests/test051.c b/cc1/tests/test051.c
index 7c694ed..04e3bde 100644
--- a/cc1/tests/test051.c
+++ b/cc1/tests/test051.c
_AT_@ -20,9 +20,9 @@ L5
         y L7 G2 'P #P2 +P _AT_I #I1 =I
         h #I2
 L7
- y L8 G2 'P #P4 +P _AT_I #I2 =I
+ y L9 G2 'P #P4 +P _AT_I #I2 =I
         h #I3
-L8
+L9
         h #I0
 }
 */
diff --git a/cc1/tests/test057.c b/cc1/tests/test057.c
index 5627615..386ae74 100644
--- a/cc1/tests/test057.c
+++ b/cc1/tests/test057.c
_AT_@ -15,7 +15,9 @@ G3 V2 "arr1 (
         #I1
         #I2
 )
-G4 V2 "arr2 (
+V4 I #N3
+V5 V4 #N2
+G6 V5 "arr2 (
         #I2
         #I7
         #I5
_AT_@ -23,10 +25,10 @@ G4 V2 "arr2 (
         #I1
         #I2
 )
-G6 I F "main
+G8 I F "main
 {
 \
- h G3 'P #P6 +P #P4 +P _AT_I G4 'P #P6 +P #P6 +P @I !I
+ h G3 'P #P6 +P #P4 +P _AT_I G6 'P #P6 +P #P6 +P @I !I
 }
 */
 
diff --git a/cc1/tests/test065.c b/cc1/tests/test065.c
index b5de713..9dc2a26 100644
--- a/cc1/tests/test065.c
+++ b/cc1/tests/test065.c
_AT_@ -16,27 +16,27 @@ A5 P "argv
 V8 I #N1
 A9 V8 "v
 A12 P "p
-A14 P "f1
-A15 P "f2
+A18 P "f1
+A21 P "f2
         A9 #I0 :I
         A12 A9 'P :P
- A14 G7 'P :P
- A15 G7 'P :P
- y L18 A1 #I0 !I
+ A18 G7 'P :P
+ A21 G7 'P :P
+ y L26 A1 #I0 !I
         h #I1
-L18
- y L19 G7 #I0 pI #P0 pP cI #I0 =I
+L26
+ y L27 G7 #I0 pI #P0 pP cI #I0 =I
         h #I2
-L19
- y L20 A14 _AT_F #I0 pI #P0 pP cI #I0 =I
+L27
+ y L28 A18 _AT_F #I0 pI #P0 pP cI #I0 =I
         h #I3
-L20
- y L21 A15 _AT_F #I0 pI #P0 pP cI #I0 =I
+L28
+ y L29 A21 _AT_F #I0 pI #P0 pP cI #I0 =I
         h #I4
-L21
- y L22 A12 _AT_I #I0 !I
+L29
+ y L30 A12 _AT_I #I0 !I
         h #I0
-L22
+L30
 */
 
 int
Received on Mon Dec 12 2016 - 15:53:03 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 12 2016 - 16:00:41 CET