]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
20080117-1.c: New testcase.
authorRichard Guenther <rguenther@suse.de>
Thu, 17 Jan 2008 12:13:53 +0000 (12:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 17 Jan 2008 12:13:53 +0000 (12:13 +0000)
2008-01-17  Richard Guenther  <rguenther@suse.de>

        * gcc.c-torture/execute/20080117-1.c: New testcase.

From-SVN: r131594

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20080117-1.c [new file with mode: 0644]

index e379da02b300057ab7bbb52c4daf67f1a09e9bac..f732e1d4cd03a7698266f1eef73c89ce61dc0785 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-17  Richard Guenther  <rguenther@suse.de>
+
+       * gcc.c-torture/execute/20080117-1.c: New testcase.
+
 2008-01-17  Revital Eres  <eres@il.ibm.com>
 
        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 (file)
index 0000000..94b7c75
--- /dev/null
@@ -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;
+}
+