diff --git a/tests/syntax/local-variable.i b/tests/syntax/local-variable.i
index fb40a040b29654e001e5b8425882e9f569929ec9..52067d1dcec47c9a1f0bfe03d2bd47f268a401a3 100644
--- a/tests/syntax/local-variable.i
+++ b/tests/syntax/local-variable.i
@@ -4,3 +4,9 @@ int main(){
   }
   ; // < NOP inserted
 }
+
+void f() {
+  if (0) {
+    int b;
+  }
+}
diff --git a/tests/syntax/oracle/local-variable.res.oracle b/tests/syntax/oracle/local-variable.res.oracle
index a435bc573b65d54bb1ee79d0eb45fe5e0738ae7d..e7cfa00d9cd4d059da7232a5b942bdd99766ab1e 100644
--- a/tests/syntax/oracle/local-variable.res.oracle
+++ b/tests/syntax/oracle/local-variable.res.oracle
@@ -11,4 +11,9 @@ int main(void)
   return __retres;
 }
 
+void f(void)
+{
+  return;
+}
+