scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 56f5f69eaf1249765514d8818d664b5c1c1a6388
parent c1d2669bb04c5433c9c6852125fe7b80e7a5d40f
Author: FRIGN <dev@frign.de>
Date:   Wed, 18 May 2016 22:41:52 +0200

Update tests reflecting LICENSE-changes

Diffstat:
Mcc1/tests/test015.c | 2+-
Mcc1/tests/test020.c | 2+-
Mcc1/tests/test026.c | 2+-
Mcc1/tests/test029.c | 8++++----
Mcc1/tests/test034.c | 4++--
Mcc1/tests/test036.c | 2+-
Mcc1/tests/test037.c | 6+++---
Mcc1/tests/test038.c | 2+-
Mcc1/tests/test041.c | 14+++++++-------
Mcc1/tests/test042.c | 2+-
Mcc1/tests/test044.c | 10+++++-----
11 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/cc1/tests/test015.c b/cc1/tests/test015.c @@ -4,7 +4,7 @@ name: TEST015 description: Stress namespace mechanism error: -test015.c:52: error: label 's' already defined +test015.c:54: error: label 's' already defined output: S8 "s2 #N2 #N1 M9 I "s #N0 diff --git a/cc1/tests/test020.c b/cc1/tests/test020.c @@ -4,8 +4,8 @@ name: TEST020 description: Basic test for integer algebraic identities error: -test020.c:81: warning: division by 0 test020.c:82: warning: division by 0 +test020.c:83: warning: division by 0 output: G2 I F "main { diff --git a/cc1/tests/test026.c b/cc1/tests/test026.c @@ -16,7 +16,7 @@ Y7 V8 " ( #K00 ) A6 Y7 'P :P - A4 #I23 :I + A4 #I24 :I A4 #I1 :I A4 #I1 :I A4 #I1 :I diff --git a/cc1/tests/test029.c b/cc1/tests/test029.c @@ -7,10 +7,10 @@ comments: f(2) will expand to 2*g, which will expand to 2*f, and in this moment f will not be expanded because the macro definition is a function alike macro, and in this case there is no arguments. error: -test029.c:31: warning: expression without side effects -test029.c:36: error: redefinition of 'f1' -test029.c:37: error: 'f' undeclared -test029.c:37: warning: expression without side effects +test029.c:32: warning: expression without side effects +test029.c:37: error: redefinition of 'f1' +test029.c:38: error: 'f' undeclared +test029.c:38: warning: expression without side effects output: G3 I F "f1 { diff --git a/cc1/tests/test034.c b/cc1/tests/test034.c @@ -4,8 +4,8 @@ name: TEST034 description: Basic test for incomplete structures error: -test034.c:45: error: declared variable 'bar' of incomplete type -test034.c:45: error: redeclaration of 'bar' +test034.c:46: error: declared variable 'bar' of incomplete type +test034.c:46: error: redeclaration of 'bar' output: X3 S2 "x X5 I F "foo diff --git a/cc1/tests/test036.c b/cc1/tests/test036.c @@ -4,7 +4,7 @@ name: TEST036 description: Duff's device error: -test036.c:58: warning: type defaults to 'int' in declaration +test036.c:59: warning: type defaults to 'int' in declaration output: G5 I F "send { diff --git a/cc1/tests/test037.c b/cc1/tests/test037.c @@ -5,9 +5,9 @@ name: TEST037 description: Basic sizeof test comments: This test is based in z80 sizes error: -test037.c:29: warning: conditional expression is constant -test037.c:31: warning: conditional expression is constant -test037.c:33: warning: conditional expression is constant +test037.c:30: warning: conditional expression is constant +test037.c:32: warning: conditional expression is constant +test037.c:34: warning: conditional expression is constant output: G2 I F "main { diff --git a/cc1/tests/test038.c b/cc1/tests/test038.c @@ -4,7 +4,7 @@ name: TEST038 description: Basic test for tentative definitions error: -test038.c:44: error: redeclaration of 'x' +test038.c:45: error: redeclaration of 'x' output: G1 I "x G1 I "x ( diff --git a/cc1/tests/test041.c b/cc1/tests/test041.c @@ -4,13 +4,13 @@ name: TEST041 description: Test for bug parsing ternary operators error: -test041.c:49: error: type mismatch in conditional expression -test041.c:49: error: incompatible types when assigning -test041.c:50: error: used struct/union type value where scalar is required -test041.c:50: warning: expression without side effects -test041.c:51: warning: 'i' defined but not used -test041.c:51: warning: 'foo' defined but not used -test041.c:51: warning: 's' defined but not used +test041.c:51: error: type mismatch in conditional expression +test041.c:51: error: incompatible types when assigning +test041.c:52: error: used struct/union type value where scalar is required +test041.c:52: warning: expression without side effects +test041.c:53: warning: 'i' defined but not used +test041.c:53: warning: 'foo' defined but not used +test041.c:53: warning: 's' defined but not used output: G2 I F "main { diff --git a/cc1/tests/test042.c b/cc1/tests/test042.c @@ -4,7 +4,7 @@ name: TEST042 description: Test for bug parsing ternary operators error: -test042.c:18: error: bad type convertion requested +test042.c:20: error: bad type conversion requested output: G2 I F "main { diff --git a/cc1/tests/test044.c b/cc1/tests/test044.c @@ -4,11 +4,11 @@ name: TEST044 description: Test of corner cases in #if error: -test044.c:15: warning: division by 0 -test044.c:19: warning: division by 0 -test044.c:23: warning: division by 0 -test044.c:29: error: parameter of #if is not an integer constant expression -test044.c:30: error: #error 3 != (1,2,3) +test044.c:17: warning: division by 0 +test044.c:21: warning: division by 0 +test044.c:25: warning: division by 0 +test044.c:31: error: parameter of #if is not an integer constant expression +test044.c:32: error: #error 3 != (1,2,3) output: */