summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/ia64/20101014.c
diff options
context:
space:
mode:
authorupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
committerupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
commit554fd8c5195424bdbcabf5de30fdc183aba391bd (patch)
tree976dc5ab7fddf506dadce60ae936f43f58787092 /gcc/testsuite/gcc.target/ia64/20101014.c
downloadcbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2
cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository.
Diffstat (limited to 'gcc/testsuite/gcc.target/ia64/20101014.c')
-rw-r--r--gcc/testsuite/gcc.target/ia64/20101014.c66
1 files changed, 66 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/ia64/20101014.c b/gcc/testsuite/gcc.target/ia64/20101014.c
new file mode 100644
index 000000000..c3e3e9f35
--- /dev/null
+++ b/gcc/testsuite/gcc.target/ia64/20101014.c
@@ -0,0 +1,66 @@
+/* { dg-do compile } */
+/* { dg-options "-w -O2 -g -fselective-scheduling2" } */
+
+typedef long unsigned int size_t;
+struct fileloc
+{
+ const char *file;
+};
+typedef struct type *type_p;
+typedef const struct type *const_type_p;
+enum typekind
+{
+ TYPE_STRUCT,
+ TYPE_UNION,
+ TYPE_POINTER,
+ TYPE_LANG_STRUCT,
+ TYPE_PARAM_STRUCT
+};
+struct type
+{
+ enum typekind kind;
+ union
+ {
+ struct
+ {
+ struct fileloc line;
+ } s;
+ struct
+ {
+ struct fileloc line;
+ } param_struct;
+ } u;
+};
+struct outf
+{
+ size_t bufused;
+ char *buf;
+};
+typedef struct outf *outf_p;
+oprintf (outf_p o, const char *format, ...)
+{
+ char *s;
+ size_t slength;
+ memcpy (o->buf + o->bufused, s, slength);
+}
+output_mangled_typename (outf_p of, const_type_p t)
+{
+ switch (t->kind)
+ {
+ case TYPE_POINTER: (fancy_abort ("/gcc/gengtype.c", 1988, __FUNCTION__));
+ }
+}
+output_type_enum (outf_p of, type_p s)
+{
+ if (s->kind == TYPE_PARAM_STRUCT && s->u.param_struct.line.file != ((void *)0))
+ {
+ oprintf (of, ", gt_e_");
+ }
+ else if (((s)->kind == TYPE_UNION || (s)->kind == TYPE_STRUCT || (s)->kind == TYPE_LANG_STRUCT) && s->u.s.line.file != ((void *)0))
+ {
+ oprintf (of, ", gt_ggc_e_");
+ output_mangled_typename (of, s);
+ }
+ else
+ oprintf (of, ", gt_types_enum_last");
+}