shithub: scc

Download patch

ref: 0df4f021feb170f1dbd7ec5946234f6a6334b167
parent: b5a123a0a108eef52d9e7df25e63707a55a32b99
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Jan 25 07:27:25 EST 2016

Fix tests after commit a564aad

This commit introduced type in size of arrays, but
tests were not updated after it.

--- a/cc1/tests/test001.c
+++ b/cc1/tests/test001.c
@@ -6,7 +6,7 @@
 G6	F	"main
 {
 \
-V8	K	#13
+V8	K	#N13
 Y7	V8	"
 (
 	#"hello world
--- a/cc1/tests/test018.c
+++ b/cc1/tests/test018.c
@@ -6,12 +6,12 @@
 G2	F	"main
 {
 \
-V3	K	#4
-V4	V3	#2
+V3	K	#N4
+V4	V3	#N2
 A5	V4	"arr
 A7	P	"p
 A9	P	"q
-V10	I	#4
+V10	I	#N4
 A11	V10	"v
 	A7	A5	'P	:P
 	A9	A5	'P	#P4	+P	#P3	+P	:P
--- a/cc1/tests/test026.c
+++ b/cc1/tests/test026.c
@@ -9,7 +9,7 @@
 \
 A4	I	"y
 A6	P	"p
-V8	K	#10
+V8	K	#N10
 Y7	V8	"
 (
 	#"test026.c
--- a/cc1/tests/test027.c
+++ b/cc1/tests/test027.c
@@ -8,7 +8,7 @@
 {
 \
 A5	P	"p
-V7	K	#25
+V7	K	#N25
 Y6	V7	"
 (
 	#"hello is better than bye
--- a/cc1/tests/test028.c
+++ b/cc1/tests/test028.c
@@ -7,7 +7,7 @@
 G6	F	"foo
 {
 \
-V8	K	#3
+V8	K	#N3
 Y10	V8	"
 (
 	#"hi
--- a/cc1/tests/test032.c
+++ b/cc1/tests/test032.c
@@ -7,7 +7,7 @@
 G5	F	"main
 {
 \
-V9	K	#44
+V9	K	#N44
 Y8	V9	"
 (
 	#"This is a string $ or # or ##and it is ok !
--- a/cc1/tests/test046.c
+++ b/cc1/tests/test046.c
@@ -3,7 +3,7 @@
 description: Basic test for initializators
 error:
 output:
-V1	I	#3
+V1	I	#N3
 G2	V1	"x
 (
 	#I1
--- a/cc1/tests/test048.c
+++ b/cc1/tests/test048.c
@@ -6,7 +6,7 @@
 S2	S
 M3	I	"a
 M4	I	"b
-V5	S2	#1
+V5	S2	#N1
 G6	V5	"x
 (
 	#I1
--- a/cc1/tests/test051.c
+++ b/cc1/tests/test051.c
@@ -3,7 +3,7 @@
 description: Basic test for initializer
 error:
 output:
-V1	I	#3
+V1	I	#N3
 G2	V1	"arr
 (
 	#I0
--- a/cc1/tests/test052.c
+++ b/cc1/tests/test052.c
@@ -6,7 +6,7 @@
 S2	S
 M3	I	"a
 M4	I	"b
-V5	S2	#2
+V5	S2	#N2
 G6	V5	"arr
 (
 	#I1
--- a/cc1/tests/test056.c
+++ b/cc1/tests/test056.c
@@ -3,7 +3,7 @@
 desciption: Test of overlaying designators
 error:
 output:
-V6	K	#3
+V6	K	#N3
 S2	S
 M3	I	"a
 M4	I	"b
@@ -20,7 +20,7 @@
 	#K0
 	#I0
 )
-V10	K	#0
+V10	K	#N0
 G11	V10	"m
 (
 )
--- a/cc1/tests/test057.c
+++ b/cc1/tests/test057.c
@@ -4,8 +4,8 @@
 description: test of initialization of incomplete arrays
 error:
 output:
-V1	I	#3
-V2	V1	#2
+V1	I	#N3
+V2	V1	#N2
 G3	V2	"arr1
 (
 	#I2
--- a/cc1/tests/test058.c
+++ b/cc1/tests/test058.c
@@ -3,9 +3,9 @@
 description: Test of initialization mixing designators and sequence
 error:
 output:
-V1	I	#5
-V2	V1	#3
-V3	V2	#2
+V1	I	#N5
+V2	V1	#N3
+V3	V2	#N2
 G4	V3	"arr
 (
 	#I0