diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20080117-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20080117-1.c | 24 |
1 files changed, 24 insertions, 0 deletions
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 000000000..94b7c7531 --- /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; +} + |