From ce4951549999f403446415c135ad1403a16a15c3 Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 12 Nov 2012 13:42:22 +0000 Subject: Globalenvs: allocate one-byte block with permissions Nonempty for each function definition, so that comparisons between function pointers are correctly defined. AST, Globalenvs, and many other files: represent programs as a list of (function or variable) definitions instead of two lists, one for functions and the other for variables. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2067 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/regression/Results/funptr2 | 3 +++ test/regression/Results/initializers | 1 + 2 files changed, 4 insertions(+) create mode 100644 test/regression/Results/funptr2 (limited to 'test/regression/Results') diff --git a/test/regression/Results/funptr2 b/test/regression/Results/funptr2 new file mode 100644 index 0000000..f364c59 --- /dev/null +++ b/test/regression/Results/funptr2 @@ -0,0 +1,3 @@ +f == f is 1 +f == g is 0 +f + 1 == f is 0 diff --git a/test/regression/Results/initializers b/test/regression/Results/initializers index d3fc91a..7474148 100644 --- a/test/regression/Results/initializers +++ b/test/regression/Results/initializers @@ -1,3 +1,4 @@ +x0 = 0 x1 = 'x' x2 = 12345 x3 = 3.14159 -- cgit v1.2.3