OSDN Git Service

2010-08-08 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Aug 2010 15:45:22 +0000 (15:45 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Aug 2010 15:45:22 +0000 (15:45 +0000)
PR tree-optimization/45109
* gcc.c-torture/compile/pr45109.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163007 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr45109.c [new file with mode: 0644]

index 052b8bb..71d33dd 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-08  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/45109
+       * gcc.c-torture/compile/pr45109.c: New testcase.
+
 2010-08-08  Uros Bizjak  <ubizjak@gmail.com>
 
        * gcc.dg/march.c: Skip if -march defined.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr45109.c b/gcc/testsuite/gcc.c-torture/compile/pr45109.c
new file mode 100644 (file)
index 0000000..0e46c38
--- /dev/null
@@ -0,0 +1,38 @@
+struct o_fsm_t;
+struct o_fsm_event_t;
+
+typedef void (*fn_t) (struct o_fsm_t *,
+                     struct o_fsm_event_t const *);
+
+struct o_fsm_state_t {
+    fn_t dispatch;
+};
+
+struct o_fsm_t {
+    fn_t dispatch;
+};
+
+extern struct o_fsm_state_t o_fsm_tran(struct o_fsm_t *fsm,
+                                      struct o_fsm_state_t next_state);
+static void plist_parser_state_start(struct o_fsm_t *fsm,
+                                    struct o_fsm_event_t const *fsm_event);
+
+struct o_fsm_state_t o_fsm_state(fn_t dispatch_fcn)
+{
+  return *(struct o_fsm_state_t *)&dispatch_fcn;
+}
+
+typedef struct _o_plist_parser_t {
+    struct o_fsm_t fsm;
+} o_plist_parser_t;
+
+static void plist_parser_state_start(struct o_fsm_t *fsm,
+                                    struct o_fsm_event_t const *fsm_event)
+{
+}
+
+void o_plist_deserialize_xml(int fin)
+{
+  o_plist_parser_t parser;
+  o_fsm_tran(&parser.fsm, o_fsm_state(plist_parser_state_start));
+}