commit a6ff2209d755e9ee362fd9eee3fa6b7c1ba603bb parent f332bea5b7c3758acad57042f620fd1663ab4f29 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Wed, 10 Aug 2016 08:31:08 +0200 Revert "[cc1] Add tests about incomplete arrays in test034.c" This reverts commit c11910371793063297b672c0ed228e9599a7401e. Diffstat:
M | cc1/tests/test034.c | | | 37 | ++++++++++++------------------------- |
1 file changed, 12 insertions(+), 25 deletions(-)
diff --git a/cc1/tests/test034.c b/cc1/tests/test034.c @@ -2,41 +2,28 @@ /* name: TEST034 -description: Basic test for incomplete types +description: Basic test for incomplete structures error: -test034.c:59: error: declared variable 'bar' of incomplete type -test034.c:59: error: redeclaration of 'bar' +test034.c:46: error: declared variable 'bar' of incomplete type +test034.c:46: error: redeclaration of 'bar' output: -G2 V1 "v -V3 I #N10 -G2 V3 "v -Y4 V1 "p -Y4 V3 "p -X7 S6 "x -X9 I F "foo -G10 I F "main +X3 S2 "x +X5 I F "foo +G6 I F "main { \ -X11 S6 "x - h X11 'P #P0 !I +X7 S2 "x + h X7 'P #P0 !I } -G9 I F "foo +G5 I F "foo { \ - X7 M13 .I #I0 :I - h X7 M13 .I + X3 M9 .I #I0 :I + h X3 M9 .I } -X17 S15 "bar2 +X13 S11 "bar2 */ -int v[]; -int v[10]; -static int p[]; -static int p[10]; -static int p[10]; -int v[10]; -int v[]; - extern struct X x; int foo();