From d7d128b7da4015d430993c85455ab5ca937e5eee Mon Sep 17 00:00:00 2001
From: Virgile Prevosto <virgile.prevosto@m4x.org>
Date: Mon, 25 Feb 2019 11:32:05 +0100
Subject: [PATCH] [tests] add test case for fixed bug.

---
 tests/syntax/local-variable.i                 | 6 ++++++
 tests/syntax/oracle/local-variable.res.oracle | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/tests/syntax/local-variable.i b/tests/syntax/local-variable.i
index fb40a040b29..52067d1dcec 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 a435bc573b6..e7cfa00d9cd 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;
+}
+
 
-- 
GitLab