From 891377ce1962cdb31357d6580d6546ec22df2b4f Mon Sep 17 00:00:00 2001 From: xleroy Date: Wed, 3 Mar 2010 10:22:27 +0000 Subject: Switching to the new C parser/elaborator/simplifier git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1269 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/regression/init4.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/regression/init4.c (limited to 'test/regression/init4.c') diff --git a/test/regression/init4.c b/test/regression/init4.c new file mode 100644 index 00000000..02b0bd5e --- /dev/null +++ b/test/regression/init4.c @@ -0,0 +1,13 @@ +/* C99-style initializers in the middle of a block */ + +int g(int x) { return x << 2; } + +int f(int x, int y) +{ + int a = x + y; + { + y++; + int b = y - g(x); + return b * a; + } +} -- cgit