Skip to content
Snippets Groups Projects
Commit 978c64cd authored by Pierre Nigron's avatar Pierre Nigron
Browse files

Correction existing test + oracle

parent aa8829f6
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
int ki[2], k ; int ki[2], k ;
int f (int vi, int i) { 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]) ; int vo = so[i]/k + ki[i]*(vi - si[i]) ;
so[i] = vo ; so[i] = vo ;
......
...@@ -95,7 +95,7 @@ void post_decl(void); ...@@ -95,7 +95,7 @@ void post_decl(void);
extern int x; extern int x;
void pre_decl() { void pre_decl() {
extern int y = 23; extern int y;
x++; y++; x++; y++;
post_decl(); post_decl();
} }
...@@ -332,7 +332,7 @@ void pre_decl(void); ...@@ -332,7 +332,7 @@ void pre_decl(void);
extern int x; extern int x;
int y; extern int y;
void post_decl(void); void post_decl(void);
...@@ -349,7 +349,6 @@ void middle_decl(void) ...@@ -349,7 +349,6 @@ void middle_decl(void)
void post_decl(void); void post_decl(void);
int y = 23;
void pre_decl(void) void pre_decl(void)
{ {
x ++; x ++;
......
...@@ -152,7 +152,8 @@ void post_decl(void); ...@@ -152,7 +152,8 @@ void post_decl(void);
extern int x; extern int x;
int y = 23; extern int y;
void pre_decl(void) void pre_decl(void)
{ {
x ++; x ++;
......
...@@ -145,7 +145,8 @@ void post_decl(void); ...@@ -145,7 +145,8 @@ void post_decl(void);
extern int x; extern int x;
int y = 23; extern int y;
void pre_decl(void) void pre_decl(void)
{ {
x ++; x ++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment