From 5a30d746b404d00463efe909a9d69b3d23f3a30b Mon Sep 17 00:00:00 2001 From: bbbradsmith Date: Thu, 11 May 2023 20:15:27 -0400 Subject: [PATCH] extern/static conflict test: remove warning as errors to match the new expected cases --- test/val/decl-static-extern.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/val/decl-static-extern.c b/test/val/decl-static-extern.c index 6918e0033..2be4d336f 100644 --- a/test/val/decl-static-extern.c +++ b/test/val/decl-static-extern.c @@ -7,13 +7,12 @@ /* see: https://github.com/cc65/cc65/issues/191 + https://github.com/cc65/cc65/issues/2111 */ -#pragma warn(error, on) - static int n = 0; -extern int n; /* should not give an error */ -static int n; /* should not give an error */ +extern int n; /* extern is ignored, gives a warning but keeps previous static definiton */ +static int n; /* no error or warning, the previous static is still in effect */ int main(void) {