From: Richard Guenther Date: Thu, 17 Jan 2008 12:13:53 +0000 (+0000) Subject: 20080117-1.c: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f779b9aec9e34471fa2933ee21eb368e08e68a85;p=gcc.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 e379da02b30..f732e1d4cd0 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 00000000000..94b7c75312f --- /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; +} +