diff --git a/tests/sparecode/bts324_bis.i b/tests/sparecode/bts324_bis.i index 73050a55cfd311be9005003c5c994246b99cdca9..67093ede54f3d0ec6d263cc05b069d02cb9eaa54 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 4cf6b9c05992ba6000408bbe11dde27f4ad4bda0..bd1ca99bc3dafedad78927da14261be279a3a3bf 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 8ca6b131dc05ce4d87f5530dfe2334de31070879..cdf2ec71edd5fe24d057b0dae9e56a72413c13de 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 ac95e157e27b016782698f233cee331505d00a15..2190b4b2bbd03a948a41d6aebe83b73ba3366f95 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 2f1f57ec35b71b593690348b3baac8e8cd9f4ec7..06e5e873247f1ade044c8f0d06c65b961a49eee7 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 ++;