From 978c64cda28fe47b244ecf9acf0990b53c1ca15e Mon Sep 17 00:00:00 2001
From: Pierre Nigron <pierre.nigron@cea.fr>
Date: Tue, 22 Aug 2023 14:29:46 +0200
Subject: [PATCH] Correction existing test + oracle

---
 tests/sparecode/bts324_bis.i                  | 2 +-
 tests/syntax/inline_calls.i                   | 2 +-
 tests/syntax/oracle/inline_calls.0.res.oracle | 3 +--
 tests/syntax/oracle/inline_calls.1.res.oracle | 3 ++-
 tests/syntax/oracle/inline_calls.2.res.oracle | 3 ++-
 5 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/sparecode/bts324_bis.i b/tests/sparecode/bts324_bis.i
index 73050a55cfd..67093ede54f 100644
--- a/tests/sparecode/bts324_bis.i
+++ b/tests/sparecode/bts324_bis.i
@@ -6,7 +6,7 @@
 
 int ki[2], k ;
 int f (int vi, int i) {
-  static int si[2] = 0, so[2] = 0;
+  static int si[2] = {0}, so[2] = {0};
   int vo = so[i]/k + ki[i]*(vi - si[i]) ;
 
   so[i] = vo ;
diff --git a/tests/syntax/inline_calls.i b/tests/syntax/inline_calls.i
index 4cf6b9c0599..bd1ca99bc3d 100644
--- a/tests/syntax/inline_calls.i
+++ b/tests/syntax/inline_calls.i
@@ -95,7 +95,7 @@ void post_decl(void);
 extern int x;
 
 void pre_decl() {
-  extern int y = 23;
+  extern int y;
   x++; y++;
   post_decl();
 }
diff --git a/tests/syntax/oracle/inline_calls.0.res.oracle b/tests/syntax/oracle/inline_calls.0.res.oracle
index 8ca6b131dc0..cdf2ec71edd 100644
--- a/tests/syntax/oracle/inline_calls.0.res.oracle
+++ b/tests/syntax/oracle/inline_calls.0.res.oracle
@@ -332,7 +332,7 @@ void pre_decl(void);
 
 extern int x;
 
-int y;
+extern int y;
 
 void post_decl(void);
 
@@ -349,7 +349,6 @@ void middle_decl(void)
 
 void post_decl(void);
 
-int y = 23;
 void pre_decl(void)
 {
   x ++;
diff --git a/tests/syntax/oracle/inline_calls.1.res.oracle b/tests/syntax/oracle/inline_calls.1.res.oracle
index ac95e157e27..2190b4b2bbd 100644
--- a/tests/syntax/oracle/inline_calls.1.res.oracle
+++ b/tests/syntax/oracle/inline_calls.1.res.oracle
@@ -152,7 +152,8 @@ void post_decl(void);
 
 extern int x;
 
-int y = 23;
+extern int y;
+
 void pre_decl(void)
 {
   x ++;
diff --git a/tests/syntax/oracle/inline_calls.2.res.oracle b/tests/syntax/oracle/inline_calls.2.res.oracle
index 2f1f57ec35b..06e5e873247 100644
--- a/tests/syntax/oracle/inline_calls.2.res.oracle
+++ b/tests/syntax/oracle/inline_calls.2.res.oracle
@@ -145,7 +145,8 @@ void post_decl(void);
 
 extern int x;
 
-int y = 23;
+extern int y;
+
 void pre_decl(void)
 {
   x ++;
-- 
GitLab