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/initializers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/regression/initializers.c') diff --git a/test/regression/initializers.c b/test/regression/initializers.c index f831c672..d0a35f3d 100644 --- a/test/regression/initializers.c +++ b/test/regression/initializers.c @@ -1,5 +1,7 @@ #include +int x0; + char x1 = 'x'; int x2 = 12345; @@ -67,6 +69,7 @@ int main() { int i; + printf("x0 = %d\n", x0); printf("x1 = '%c'\n", x1); printf("x2 = %d\n", x2); printf("x3 = %.5f\n", x3); -- cgit