From: Richard Guenther Date: Thu, 17 Jan 2008 12:13:53 +0000 (+0000) Subject: 20080117-1.c: New testcase. X-Git-Tag: releases/gcc-4.3.0~574 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f779b9aec9e34471fa2933ee21eb368e08e68a85;p=thirdparty%2Fgcc.git 20080117-1.c: New testcase. 2008-01-17 Richard Guenther * gcc.c-torture/execute/20080117-1.c: New testcase. From-SVN: r131594 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e379da02b300..f732e1d4cd03 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-01-17 Richard Guenther + + * gcc.c-torture/execute/20080117-1.c: New testcase. + 2008-01-17 Revital Eres PR30957 diff --git a/gcc/testsuite/gcc.c-torture/execute/20080117-1.c b/gcc/testsuite/gcc.c-torture/execute/20080117-1.c new file mode 100644 index 000000000000..94b7c75312fd --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20080117-1.c @@ -0,0 +1,24 @@ +typedef struct gs_imager_state_s { + struct { + int half_width; + int cap; + float miter_limit; + } line_params; +} gs_imager_state; +static const gs_imager_state gstate_initial = { { 1 } }; +void gstate_path_memory(gs_imager_state *pgs) { + *pgs = gstate_initial; +} +int gs_state_update_overprint(void) +{ + return gstate_initial.line_params.half_width; +} + +extern void abort (void); +int main() +{ + if (gs_state_update_overprint() != 1) + abort (); + return 0; +} +