shithub: scc

Download patch

ref: f9a9c99baffaf19ec52260e79eaf1b0cd76940c4
parent: c31a2b36325ec5d3d82ce24209a5c7f5f9a8c041
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jan 20 05:51:21 EST 2016

Fix tests that use strings

Trailing 0 is added to strings now, so these tests must be updated.

--- a/cc1/tests/test001.c
+++ b/cc1/tests/test001.c
@@ -10,7 +10,7 @@
 G6	F5	main
 {
 \
-	X4	"68656C6C6F20776F726C640A	'P	pP	cI
+	X4	"68656C6C6F20776F726C640A00	'P	pP	cI
 	r	#I0
 }
 
--- a/cc1/tests/test026.c
+++ b/cc1/tests/test026.c
@@ -11,7 +11,7 @@
 \
 A4	I	y
 A6	P	p
-	A6	"746573743032362E63	'P	:P
+	A6	"746573743032362E6300	'P	:P
 	A4	#I21	:I
 	A4	#I1	:I
 	A4	#I1	:I
--- a/cc1/tests/test027.c
+++ b/cc1/tests/test027.c
@@ -10,7 +10,7 @@
 {
 \
 A5	P	p
-	A5	"68656C6C6F20697320626574746572207468616E20627965	'P	:P
+	A5	"68656C6C6F20697320626574746572207468616E2062796500	'P	:P
 	r	A5	@K	gI
 }
 
--- a/cc1/tests/test028.c
+++ b/cc1/tests/test028.c
@@ -9,7 +9,7 @@
 G6	F5	foo
 {
 \
-	r	"6869	'P
+	r	"686900	'P
 }
 
 */
--- a/cc1/tests/test032.c
+++ b/cc1/tests/test032.c
@@ -10,7 +10,7 @@
 {
 \
 A6	P	p
-	A6	"54686973206973206120737472696E672024206F722023206F72202323616E64206974206973206F6B2021	'P	:P
+	A6	"54686973206973206120737472696E672024206F722023206F72202323616E64206974206973206F6B202100	:P
 	r	A6	#P0	!I
 }