changeset 459:4c3895074170

Add the global compound literals thing to tcctests.c
author Rob Landley <rob@landley.net>
date Sat, 18 Aug 2007 01:13:00 -0500
parents 983341326428
children 32aea31ba434
files tests/tcctest.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/tcctest.c	Sat Aug 18 01:02:45 2007 -0500
+++ b/tests/tcctest.c	Sat Aug 18 01:13:00 2007 -0500
@@ -2173,3 +2173,6 @@
 {
     const_func(1);
 }
+
+// Make sure compound literals work outside functions.
+struct point { int X; int Y; } *test = &((struct point){1,1});