From e7b822497b940e181dab799a8c17dc49e2062f0a Mon Sep 17 00:00:00 2001 From: xleroy Date: Fri, 2 Apr 2010 07:55:14 +0000 Subject: In cparser/SimplExpr.ml: - wrong simplification of && and || in the Set case - generated nicer code for && and || in the Eval case git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1308 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/regression/expr5.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/regression/expr5.c (limited to 'test/regression/expr5.c') diff --git a/test/regression/expr5.c b/test/regression/expr5.c new file mode 100644 index 00000000..b41aeb88 --- /dev/null +++ b/test/regression/expr5.c @@ -0,0 +1,13 @@ +#include + +int foo(void) +{ + return 2; +} + +int main(void) +{ + int g_46 = 0 || foo(); + printf ("%d\n", g_46); + return 0; +} -- cgit