Commit cf8e718a by Richard Henderson Committed by Richard Henderson

New test.

From-SVN: r37078
parent 140c3b7e
2000-10-26 Richard Henderson <rth@redhat.com>
* gcc.c-torture/execute/20001026-1.c: New.
2000-10-26 Mark Mitchell <mark@codesourcery.com> 2000-10-26 Mark Mitchell <mark@codesourcery.com>
* g++.old-deja/g++.brendan/label2.C: Tweak to work with V3. * g++.old-deja/g++.brendan/label2.C: Tweak to work with V3.
......
extern void abort (void);
typedef struct {
long r[(19 + sizeof (long))/(sizeof (long))];
} realvaluetype;
typedef void *tree;
static realvaluetype
real_value_from_int_cst (tree x, tree y)
{
realvaluetype r;
int i;
for (i = 0; i < sizeof(r.r)/sizeof(long); ++i)
r.r[i] = -1;
return r;
}
struct brfic_args
{
tree type;
tree i;
realvaluetype d;
};
static void
build_real_from_int_cst_1 (data)
void * data;
{
struct brfic_args *args = (struct brfic_args *) data;
args->d = real_value_from_int_cst (args->type, args->i);
}
int main()
{
struct brfic_args args;
__builtin_memset (&args, 0, sizeof(args));
build_real_from_int_cst_1 (&args);
if (args.d.r[0] == 0)
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment