From eb34e50d2dd23e098d8ee519d842859429e25791 Mon Sep 17 00:00:00 2001 From: Virgile Prevosto <virgile.prevosto@m4x.org> Date: Fri, 24 May 2019 09:12:30 +0200 Subject: [PATCH] [tests] add test for monitoring usage of local var in declaration of another --- tests/syntax/local-variable.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/syntax/local-variable.i b/tests/syntax/local-variable.i index 6e6d1b453d0..e1f1524ec86 100644 --- a/tests/syntax/local-variable.i +++ b/tests/syntax/local-variable.i @@ -11,5 +11,11 @@ void f() { } } +void h (int i) { + int x = 1; + int t[100 / sizeof(x)]; + int u[100 / sizeof(i)]; +} + int c; int g() { return 1 || (-1L || g(), c); } -- GitLab